Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 8, 2018
1 parent f198551 commit 3c76d47
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ npm-debug.log*
/.nyc_output
/test/**/dist
/examples/**/dist
/examples/**/node_modules

# tnpm cache directory
/test/**/.cache
Expand Down
7 changes: 6 additions & 1 deletion examples/dead-simple/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{}
{
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
}
}
4 changes: 3 additions & 1 deletion examples/dead-simple/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<body>

<h1>Hi roadhog</h1>
<script src="/index.js"></script>
<div id="root"></div>

<script src="./index.js"></script>

</body>
</html>
21 changes: 20 additions & 1 deletion examples/dead-simple/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
console.log('app');
import React from 'react';
import ReactDOM from 'react-dom';

class App extends React.Component {
render() {
return (
<div className="full-page-content">
<div className="landing-blurb">
<div className="logo">Logo here</div>
<div className="animation">Something here</div>
<h1 ref="landingLabel" className="label">
I'm looking for things to do in
</h1>
</div>
</div>
);
}
}

ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit 3c76d47

Please sign in to comment.