Created
November 17, 2018 17:02
-
-
Save sag1v/6d03c287fabce9548472f768adba572d 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
class App extends Component { | |
componentDidMount(){ | |
window.ReactCounter.mount(); | |
} | |
render() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<div id="counter-app"></div> | |
<p> | |
This is the main App. | |
</p> | |
</header> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment