-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arnav
committed
Jun 21, 2017
1 parent
93fd6a7
commit a2807f2
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
|
||
export default function app() { | ||
return ( | ||
<div> | ||
<h1>JSX</h1> | ||
<span>My first JSX span!</span> | ||
</div> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './components/app'; | ||
|
||
const container = document.getElementById('container'); | ||
const app = ( | ||
<div> | ||
<h1>JSX</h1> | ||
<span>My first JSX span!</span> | ||
</div> | ||
); | ||
|
||
ReactDOM.render(app, container); | ||
ReactDOM.render(<App></App>, container); |