Brian Vaughn
7 years ago
committed by
GitHub
12 changed files with 199 additions and 101 deletions
@ -0,0 +1,8 @@ |
|||||
|
{ |
||||
|
"bracketSpacing": false, |
||||
|
"jsxBracketSameLine": true, |
||||
|
"parser": "flow", |
||||
|
"printWidth": 40, |
||||
|
"singleQuote": true, |
||||
|
"trailingComma": "es5" |
||||
|
} |
@ -1,3 +1,5 @@ |
|||||
const element = <h1>Hello, world!</h1>; |
const element = <h1>Hello, world!</h1>; |
||||
const container = document.getElementById('root'); |
const container = document.getElementById( |
||||
ReactDOM.render(element, container); |
'root' |
||||
|
); |
||||
|
ReactDOM.render(element, container); |
||||
|
@ -1,3 +1,3 @@ |
|||||
function hello() { |
function hello() { |
||||
return <div>Hello world!</div>; |
return <div>Hello world!</div>; |
||||
} |
} |
||||
|
@ -1,8 +1,10 @@ |
|||||
<div className="shopping-list"> |
<div className="shopping-list"> |
||||
<h1>Shopping List for {props.name}</h1> |
<h1> |
||||
|
Shopping List for {props.name} |
||||
|
</h1> |
||||
<ul> |
<ul> |
||||
<li>Instagram</li> |
<li>Instagram</li> |
||||
<li>WhatsApp</li> |
<li>WhatsApp</li> |
||||
<li>Oculus</li> |
<li>Oculus</li> |
||||
</ul> |
</ul> |
||||
</div> |
</div>; |
||||
|
Loading…
Reference in new issue