-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
The second example works, but I tried the first one on CodeSandbox and it didn't quite work. I'm happy to add it if we can get this going. |
doh! |
ah, classic! 😄 Alright, I think this looks good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this improvement @charliewilco! Please look into these nits if possible, as inline JS in markdown is not (yet) formatted by Prettier 😅
README.md
Outdated
|
||
React.useEffect(() => { | ||
focusEditor() | ||
}, []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing semicolon
README.md
Outdated
EditorState.createEmpty() | ||
); | ||
|
||
const editor = React.useRef(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing semicolon
should be resolved, sorry about that! i thought prettier would do js in markdown blocks https://prettier.io/blog/2017/11/07/1.8.0.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@claudiopro merged this pull request in f9f5fd6. |
Summary: Adds React Hooks as examples in docs facebookarchive#1987 Pull Request resolved: facebookarchive#2004 Reviewed By: claudiopro Differential Revision: D14783281 Pulled By: claudiopro fbshipit-source-id: 7edcdb3ee4e32afd1197ea69fed968538243eccd
Summary: Adds React Hooks as examples in docs facebookarchive#1987 Pull Request resolved: facebookarchive#2004 Reviewed By: claudiopro Differential Revision: D14783281 Pulled By: claudiopro fbshipit-source-id: 7edcdb3ee4e32afd1197ea69fed968538243eccd
Summary: Adds React Hooks as examples in docs #1987 Pull Request resolved: facebookarchive/draft-js#2004 Reviewed By: claudiopro Differential Revision: D14783281 Pulled By: claudiopro fbshipit-source-id: 7edcdb3ee4e32afd1197ea69fed968538243eccd
Adds React Hooks as examples in docs #1987