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
0 parents
commit 005aaba
Showing
9 changed files
with
86 additions
and
0 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,7 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"stage-0", | ||
"react" | ||
] | ||
} |
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,2 @@ | ||
node_modules/ | ||
npm-debug.log |
Empty file.
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 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Timer App</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="./bundle.js"></script> | ||
</body> | ||
</html> |
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,3 @@ | ||
{ | ||
"ignore": ["bundle.js"] | ||
} |
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,32 @@ | ||
{ | ||
"name": "example-fp-demo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"scripts": { | ||
"build": "./node_modules/.bin/browserify src/index.js -t babelify --outfile bundle.js", | ||
"watch": "./node_modules/.bin/nodemon --exec npm run build", | ||
"start": "./node_modules/.bin/http-server" | ||
}, | ||
"author": "Jack Hsu <jack.hsu@gmail.com> (http://jaysoo.ca/)", | ||
"license": "ISC", | ||
"dependencies": { | ||
"daggy": "0.0.1", | ||
"data.either": "^1.3.0", | ||
"data.maybe": "^1.2.1", | ||
"pointfree-fantasy": "^0.1.3", | ||
"ramda": "^0.19.0", | ||
"react": "^0.14.5", | ||
"react-dom": "^0.14.5" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.3.17", | ||
"babel-polyfill": "^6.3.14", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-react": "^6.3.13", | ||
"babel-preset-stage-0": "^6.3.13", | ||
"babelify": "^7.2.0", | ||
"browserify": "^12.0.1", | ||
"http-server": "^0.8.5", | ||
"nodemon": "^1.8.1" | ||
} | ||
} |
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,23 @@ | ||
import React, { | ||
Component | ||
} from 'react'; | ||
|
||
class App extends Component { | ||
searchClicked() { | ||
const { value } = this.refs.searchInput; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<input ref="searchInput" placeholder="Search for videos"/> | ||
<button onClick={() => this.searchClicked()}> | ||
Search | ||
</button> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; | ||
|
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,2 @@ | ||
export const API_KEY = 'AIzaSyBn6VAt-hqQEowrEouhsL_k7RqJ2zSsoNI'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
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,7 @@ | ||
import 'babel-polyfill'; | ||
import React, { Component} from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import config from './config'; | ||
import App from './app'; | ||
|
||
ReactDOM.render(<App/>, document.getElementById('root')); |
Real one?