Fixes incorrect docs, see #1497 (#1837)
Fixes incorrect docs, see #1497 (#1837)

Summary:
**Summary**

Updates the docs to fix #1497. The current suggested method results in an `Element type is invalid:` error.

I can confirm that using the component itself rather than its name as a string works as expected.

Credit goes to albertlockett
Pull Request resolved: https://github.com/facebook/draft-js/pull/1837

Differential Revision: D9734736

fbshipit-source-id: 91aee43c504a3d5eda1bc74548f806faae4bc35d

facebook/draft-js