File tree 12 files changed +729
-0
lines changed 12 files changed +729
-0
lines changed Original file line number Diff line number Diff line change
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ node_modules
5
+
6
+ # production
7
+ build
8
+
9
+ # misc
10
+ .DS_Store
11
+ npm-debug.log
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ < link rel ="shortcut icon " href ="./src/favicon.ico ">
7
+ < title > React App</ title >
8
+ </ head >
9
+ < body >
10
+ < div id ="root "> </ div >
11
+ <!--
12
+ This HTML file is a template.
13
+ If you open it directly in the browser, you will see an empty page.
14
+
15
+ You can add webfonts, meta tags, or analytics to this file.
16
+ The build step will place the bundled scripts into the <body> tag.
17
+
18
+ To begin the development, run `npm start` in this folder.
19
+ To create a production bundle, use `npm run build`.
20
+ -->
21
+ </ body >
22
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " my-app" ,
3
+ "version" : " 0.0.1" ,
4
+ "private" : true ,
5
+ "devDependencies" : {
6
+ "react-scripts" : " file:///Users/jimmyhmiller/Documents/Code/open-source/create-react-app/react-scripts-0.3.0-alpha.tgz" ,
7
+ "react-test-renderer" : " ^15.3.0"
8
+ },
9
+ "dependencies" : {
10
+ "react" : " ^15.3.0" ,
11
+ "react-dom" : " ^15.3.0"
12
+ },
13
+ "scripts" : {
14
+ "start" : " react-scripts start" ,
15
+ "build" : " react-scripts build" ,
16
+ "eject" : " react-scripts eject" ,
17
+ "test" : " react-scripts test"
18
+ },
19
+ "eslintConfig" : {
20
+ "extends" : " ./node_modules/react-scripts/config/eslint.js"
21
+ }
22
+ }
Original file line number Diff line number Diff line change
1
+ .App {
2
+ text-align : center;
3
+ }
4
+
5
+ .App-logo {
6
+ animation : App-logo-spin infinite 20s linear;
7
+ height : 80px ;
8
+ }
9
+
10
+ .App-header {
11
+ background-color : # 222 ;
12
+ height : 150px ;
13
+ padding : 20px ;
14
+ color : white;
15
+ }
16
+
17
+ .App-intro {
18
+ font-size : large;
19
+ }
20
+
21
+ @keyframes App-logo-spin {
22
+ from { transform : rotate (0deg ); }
23
+ to { transform : rotate (360deg ); }
24
+ }
Original file line number Diff line number Diff line change
1
+ import React , { Component } from 'react' ;
2
+ import logo from './logo.svg' ;
3
+ import './App.css' ;
4
+
5
+ class App extends Component {
6
+ render ( ) {
7
+ return (
8
+ < div className = "App" >
9
+ < div className = "App-header" >
10
+ < img src = { logo } className = "App-logo" alt = "logo" />
11
+ < h2 > Welcome to React</ h2 >
12
+ </ div >
13
+ < p className = "App-intro" >
14
+ To get started, edit < code > src/App.js</ code > and save to reload.
15
+ </ p >
16
+ </ div >
17
+ ) ;
18
+ }
19
+ }
20
+
21
+ export default App ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import App from '../\App' ;
3
+ import renderer from 'react-test-renderer' ;
4
+
5
+ describe ( 'App' , ( ) => {
6
+ it ( 'renders a welcome view' , ( ) => {
7
+ const instance = renderer . create ( < App /> ) ;
8
+ const tree = instance . toJSON ( ) ;
9
+ expect ( tree ) . toMatchSnapshot ( ) ;
10
+ } ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change
1
+ exports [` App renders a welcome view 1` ] = `
2
+ <div
3
+ className = " App" >
4
+ <div
5
+ className = " App-header" >
6
+ <img
7
+ alt = " logo"
8
+ className = " App-logo"
9
+ src = " test-file-stub" />
10
+ <h2 >
11
+ Welcome to React
12
+ </h2 >
13
+ </div >
14
+ <p
15
+ className = " App-intro" >
16
+ To get started, edit
17
+ <code >
18
+ src/App.js
19
+ </code >
20
+ and save to reload.
21
+ </p >
22
+ </div >
23
+ ` ;
Original file line number Diff line number Diff line change
1
+ body {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ font-family : sans-serif;
5
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import ReactDOM from 'react-dom' ;
3
+ import App from 'App' ;
4
+ import './index.css' ;
5
+
6
+ ReactDOM . render (
7
+ < App /> ,
8
+ document . getElementById ( 'root' )
9
+ ) ;
You can’t perform that action at this time.
0 commit comments