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 container = document.getElementById('root'); |
|||
ReactDOM.render(element, container); |
|||
const container = document.getElementById( |
|||
'root' |
|||
); |
|||
ReactDOM.render(element, container); |
|||
|
@ -1,3 +1,3 @@ |
|||
function hello() { |
|||
return <div>Hello world!</div>; |
|||
} |
|||
} |
|||
|
@ -1,8 +1,10 @@ |
|||
<div className="shopping-list"> |
|||
<h1>Shopping List for {props.name}</h1> |
|||
<h1> |
|||
Shopping List for {props.name} |
|||
</h1> |
|||
<ul> |
|||
<li>Instagram</li> |
|||
<li>WhatsApp</li> |
|||
<li>Oculus</li> |
|||
</ul> |
|||
</div> |
|||
</div>; |
|||
|
Loading…
Reference in new issue