Created
July 4, 2022 14:47
-
-
Save koss-lebedev/c73b2c115e7dd7f0fd854edb674981b0 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
const TextMessage = ({ message }) => { | |
// ... | |
return <div>{message.text}</div> | |
} | |
messageFactory.registerType('text', TextMessage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment