Created
November 17, 2018 17:23
-
-
Save sag1v/3eb8e180620a290648715a69eec2cb3e to your computer and use it in GitHub Desktop.
react integration with other applications article
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
window.ReactCounter = { | |
mount: (props, container) => { | |
ReactDOM.render(<Counter {...props} />, container); | |
}, | |
unmount: (container) => { | |
ReactDOM.unmountComponentAtNode(container); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment