Last active
February 16, 2020 10:10
-
-
Save gustav1105/adb72a1610485d7610fca24fde1988c8 to your computer and use it in GitHub Desktop.
editor-state-context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { EditorState } from "draft-js"; | |
export const EditorContext = React.createContext<EditorState>( | |
EditorState.createEmpty() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment