formations/developpement/intro_javascript/ressources/react-demo/app.js

11 lines
446 B
JavaScript
Raw Permalink Normal View History

import React from 'react'
import ReactDOM from 'react-dom'
import HelloWorld from './components/hello-world'
import PropsExample from './components/props-example'
import Clock from './components/clock-lifecycle'
import Counter from './components/counter'
ReactDOM.render(<HelloWorld />, document.getElementById('app'))
ReactDOM.render(<Clock />, document.getElementById('clock'))
ReactDOM.render(<Counter />, document.getElementById('counter'))