/App.js Secret
Last active
August 23, 2016 17:49
Redux Counter Initial VIEW
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
/* | |
components/App.js | |
*/ | |
import React from 'react'; | |
import Counter from 'components/Counter'; | |
import Controls from 'components/Controls'; | |
class App extends React.Component { | |
render(){ | |
return ( | |
<div> | |
<Counter/> | |
<Controls/> | |
</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
/* | |
components/Controls.js | |
*/ | |
import React from 'react'; | |
export default class Controls extends React.Component { | |
render() { | |
return ( | |
<div> | |
<input type="text"/> | |
<button>+</button> | |
<button>-</button> | |
<button>HIDE</button> | |
</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
/* | |
components/Counter.js | |
*/ | |
import React from 'react'; | |
export default class Counter extends React.Component { | |
render() { | |
return ( | |
<div> | |
<h1>{ this.props.value }</h1> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment