Created
June 27, 2018 10:25
-
-
Save levvsha/5b7dfa8fd63459d2da9ec1a1ee31ca2b to your computer and use it in GitHub Desktop.
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
... | |
export const options = { // <-- [1] | |
styleToHTML, | |
blockToHTML, | |
entityToHTML, | |
}; | |
const converterFunction = convertToHTML(options); // <-- [2] | |
export default contentState => converterFunction(contentState); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment