-
Notifications
You must be signed in to change notification settings - Fork 1
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
jiayao.deng
committed
Aug 2, 2018
1 parent
a04894e
commit f89843a
Showing
28 changed files
with
1,935 additions
and
553 deletions.
There are no files selected for viewing
This file was deleted.
Oops, 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,37 @@ | ||
{ | ||
"comments": false, | ||
"env": { | ||
"development": { | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"browsers": ["last 2 versions", "> 5%", "safari >= 8", "ie >= 10", "Firefox ESR", "iOS >= 8", "android >= 4"] | ||
} | ||
} | ||
], | ||
"react", | ||
"stage-2" | ||
], | ||
"plugins": ["transform-runtime", "react-hot-loader/babel"] | ||
}, | ||
"production": { | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"browsers": ["last 2 versions", "> 5%", "safari >= 8", "ie >= 10", "Firefox ESR", "iOS >= 8", "android >= 4"] | ||
} | ||
} | ||
], | ||
"react", | ||
"stage-2" | ||
], | ||
"plugins": ["transform-runtime"] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, 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
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,10 +1,17 @@ | ||
import React from 'react' | ||
import { hot } from 'react-hot-loader' | ||
|
||
export default class App extends React.Component { | ||
class App extends React.Component { | ||
constructor(props) { | ||
super(props) | ||
} | ||
render() { | ||
return <p>react render here</p> | ||
} | ||
} | ||
|
||
if (module.hot) { | ||
App = hot(module)(App) | ||
} | ||
|
||
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
Oops, something went wrong.