index.html
|
03 | < meta charset = "utf-8" /> |
04 | < meta name = "viewport" content = "width=device-width, initial-scale=1" /> |
05 | < title >React App</ title > |
|
index.js
|
01 | import React from 'react' ; |
02 | import ReactDOM from 'react-dom' ; |
04 | class Test extends React.Component { |
06 | return <h3>Hello, World!</h3>; |
09 | ReactDOM.render( <Test />, document.getElementById( 'root' ) ); |
|
localhost: 3000
|
|