Skip to content

Instantly share code, notes, and snippets.

@sag1v
Created November 17, 2018 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sag1v/3eb8e180620a290648715a69eec2cb3e to your computer and use it in GitHub Desktop.
Save sag1v/3eb8e180620a290648715a69eec2cb3e to your computer and use it in GitHub Desktop.
react integration with other applications article
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