Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Contributing to React!

koba04
February 01, 2018

Contributing to React!

React.js meetup #5

koba04

February 01, 2018
Tweet

More Decks by koba04

Other Decks in Programming

Transcript

  1. /FX$POUFYU"1* const ThemeContext = React.createContext(‘light’); const Title = ({title}) =>

    ( <ThemeContext.Consumer> {theme => <h1 className={theme}>{title}</h1>} </ThemeContext> ); class App extends React.Component { state = {theme: ‘light’}; render() { return ( <ThemeContext.Provider value={this.state.theme}> <Title>Hello</Title> </ThemeContext> ); } }
  2. )PXUPDPOUSJCVUFUP3FBDU % // Fork and clone facebook/react % // Create

    a PR branch % // Write a patch % yarn test or yarn test —watch XXX % yarn test-prod % yarn prettier % yarn lint % yarn flow % // Send a PR!
  3. )PXUPDPOUSJCVUFUP3FBDU packages/ !"" events !"" react !"" react-art !"" react-call-return

    !"" react-dom !"" react-native-renderer !"" react-noop-renderer !"" react-reconciler !"" react-test-renderer #"" shared