This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: in react hooks example, limit createEmpty calls (#2432)
Summary: In the React hooks example, `EditorState.createEmpty` will be called each time the component is rendered. By wrapping it in a function, it will only be called once per instance of the MyEditor component. Pull Request resolved: #2432 Reviewed By: claudiopro Differential Revision: D21652207 Pulled By: mrkev fbshipit-source-id: 0c24a4e84718227b4e89d1c810b2558ffd51384d
- Loading branch information