I can not understand why draft-js is not displayed

I did a draft js document to create a very simple demo of a js project.

Everything works fine, but when I open the URL in Chrome, I can only see a white blank page (there is a hidden editor there, but it doesn’t appear)

There is no error on the browser console.

The demo project is here: https://github.com/js-demos/react-draft-js-demo , you can clone it and follow the readme to run it.

I looked at the code very carefully, but I can’t understand why.

+4
source share
2 answers

Draft.js, . . , -. Draft.js , " Rich Text React".

enter image description here

+3

, , ( - ), :

  • Draft.css .
  • index.html :

    <link rel="stylesheet" href="./src/components/Draft.css" />

, Draft-js, "", ..

+1

Source: https://habr.com/ru/post/1651215/


All Articles