This file contains hidden or 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
| import React, { Component } from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| class App extends Component { | |
| render() { | |
| return React.createElement( | |
| 'div', | |
| { className: 'App' }, | |
| React.createElement( |
This file contains hidden or 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
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import App from './App'; | |
| import './index.css'; | |
| ReactDOM.render( | |
| <App />, | |
| document.getElementById('root') | |
| ); |
This file contains hidden or 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
| { | |
| "name": "my-app", | |
| "version": "0.1.0", | |
| "private": true, | |
| "dependencies": { | |
| "react": "^15.4.2", | |
| "react-dom": "^15.4.2" | |
| }, | |
| "devDependencies": { | |
| "react-scripts": "0.9.5" |
This file contains hidden or 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
| import React from 'react'; | |
| function Welcome(props) { | |
| return ( | |
| <h1>Hello, {props.name}</h1> | |
| ); | |
| } |
This file contains hidden or 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
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| function Welcome(props) { | |
| return ( | |
| <h1>Hello, {props.name}</h1> | |
| ); | |
| } | |
| ReactDOM.render( |
This file contains hidden or 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
| import React from 'react'; | |
| import ReactDom from 'react-dom'; | |
| function Welcome({ name }) { | |
| return ( | |
| <h1>Hello, {name}</h1> | |
| ); | |
| } | |
| const strangerName = 'Stranger'; |