File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
33Simple React state management. Made with :heart : and ES6 Proxies.
44
5- [ ![ Build] ( https://img.shields.io/circleci/project/github/solkimicreb/react-easy-state/master.svg )] ( https://circleci.com/gh/solkimicreb/react-easy-state/tree/master ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/solkimicreb/react-easy-state/badge.svg )] ( https://coveralls.io/github/solkimicreb/react-easy-state ) [ ![ JavaScript Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://standardjs.com ) [ ![ Package size] ( http ://img.badgesize .io/https://unpkg.com/ react-easy-state/dist/umd.es6.min.js?compression=gzip&label=minzip_size )] ( https://unpkg .com/react-easy-state/dist/umd.es6.min.js ) [ ![ Version] ( https://img.shields.io/npm/v/react-easy-state.svg )] ( https://www.npmjs.com/package/react-easy-state ) [ ![ dependencies Status] ( https://david-dm.org/solkimicreb/react-easy-state/status.svg )] ( https://david-dm.org/solkimicreb/react-easy-state ) [ ![ License] ( https://img.shields.io/npm/l/react-easy-state.svg )] ( https://www.npmjs.com/package/react-easy-state )
5+ [ ![ Build] ( https://img.shields.io/circleci/project/github/solkimicreb/react-easy-state/master.svg )] ( https://circleci.com/gh/solkimicreb/react-easy-state/tree/master ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/solkimicreb/react-easy-state/badge.svg )] ( https://coveralls.io/github/solkimicreb/react-easy-state ) [ ![ JavaScript Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://standardjs.com ) [ ![ Package size] ( https ://img.shields .io/bundlephobia/minzip/ react-easy-state.svg )] ( https://bundlephobia .com/result?p= react-easy-state ) [ ![ Version] ( https://img.shields.io/npm/v/react-easy-state.svg )] ( https://www.npmjs.com/package/react-easy-state ) [ ![ dependencies Status] ( https://david-dm.org/solkimicreb/react-easy-state/status.svg )] ( https://david-dm.org/solkimicreb/react-easy-state ) [ ![ License] ( https://img.shields.io/npm/l/react-easy-state.svg )] ( https://www.npmjs.com/package/react-easy-state )
66
77<a href =" #platform-support " ><img src =" images/browser_support.png " alt =" Browser support " width =" 450px " /></a >
88
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import CardMedia from '@material-ui/core/CardMedia'
55import CardContent from '@material-ui/core/CardContent'
66
77class Beer extends Component {
8- store = store ( { details : false } )
8+ store = store ( { details : false } ) ;
99
10- toggleDetails = ( ) => ( this . store . details = ! this . store . details )
10+ toggleDetails = ( ) => ( this . store . details = ! this . store . details ) ;
1111
12- render ( ) {
12+ render ( ) {
1313 const {
1414 name,
1515 image_url : imageUrl ,
@@ -19,8 +19,8 @@ class Beer extends Component {
1919 const { details } = this . store
2020
2121 return (
22- < Card onClick = { this . toggleDetails } className = " beer" >
23- { ! details && < CardMedia image = { imageUrl } className = " media" /> }
22+ < Card onClick = { this . toggleDetails } className = ' beer' >
23+ { ! details && < CardMedia image = { imageUrl } className = ' media' /> }
2424 < CardContent >
2525 < h3 > { name } </ h3 >
2626 { details ? (
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import LinearProgress from '@material-ui/core/LinearProgress'
55import appStore from './appStore'
66
77export default view ( ( ) => (
8- < div className = " searchbar" >
8+ < div className = ' searchbar' >
99 < SearchBar
1010 onRequestSearch = { appStore . fetchBeers }
11- placeholder = " Some food ..."
11+ placeholder = ' Some food ...'
1212 />
1313 { appStore . isLoading && < LinearProgress /> }
1414 </ div >
You can’t perform that action at this time.
0 commit comments