Labels
- I.D: Implementation Difficulty: 0 to 10 where 0 is super easy and 10 is super hard.
| Name | Stars | I.D. | Links | Type |
|---|---|---|---|---|
| react-motion | 8,738 ⭐ | 8 | Github | Generic |
| react-flip-move | 1,341 ⭐ | 0 | Github - Example | List |
| const toPairs = obj => Object.keys(obj).reduce((acc, value) => [ ...acc, [value, obj[value]] ], []); |
| const breakpoints = { | |
| 900: { name: 'Tablet' }, | |
| 600: { name: 'Mobile' }, | |
| } | |
| render( | |
| <Hello name="Desktop" bps={breakpoints} />, | |
| document.getElementById('root') | |
| ) |
| <WhatIsTheMeaningOfLife | |
| context={someInput} | |
| render={meaningOfLife => ( | |
| <MyBeautifulUI> | |
| {meaningOfLife} | |
| </MyBeautifulUI> | |
| )} | |
| /> |
| class ToggleOpened extends Component { | |
| state = { opened: false } | |
| toggle = () => | |
| this.setState(state => ({ opened: !state.opened })) | |
| render() { | |
| return this.props.render({ | |
| opened: this.state.opened, | |
| toggle: this.toggle, |
| export const uncurry = (fn) => (...args) => { | |
| let result = fn | |
| for(i in args){ | |
| result = typeof result === 'function' | |
| ? result(args[i]) | |
| : result | |
| } | |
| return result | |
| } |