Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ---- js ----
  2. class ComponenteExemplo extends React.Component {
  3. constructor(props) {
  4. super(props);
  5. }
  6.  
  7. render() {
  8. return <div>Exemplo</div>;
  9. }
  10. }
  11.  
  12. ReactDOM.render(
  13. <div>
  14. <Exemplo />
  15. <Exemplo />
  16. </div>,
  17. document.getElementById('root')
  18. );
  19.  
  20. --------------
  21. ----html-------
  22. <div id="root"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement