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

UNLEARN EVERYTHING

UNLEARN EVERYTHING

React has changed the way we write web applications.
To begin with, React is not easy because it requires an open mind.
In this session I will talk about the "best practices" put in discussion by React giving, for each one, the answers I gave myself to accept the change and some ideas to work out of the comfort zone.

Michele Bertoli

May 13, 2015
Tweet

More Decks by Michele Bertoli

Other Decks in Programming

Transcript

  1. Michele Bertoli Front End Dev at Bizzby (London, UK) Member

    of WEBdeBS Follow me @MicheleBertoli WHO AM I
  2. WEB DEVELOPMENT TODAY • Super exciting • Many tools /

    ideas • Browsers work • Back to JavaScript
  3. DEVELOPERS TODAY • Innovation breaks rules • We are lazy

    • We have prejudices • Better keep on doing bad things
  4. INLINE STYLE There's React Style Webpack plugin which extends Webpack

    with the ability to extract styles from your application at build time.
  5. <3 COMPONENTS • Everything in one place • Small components

    • Reduce coupling • Separation of concerns
  6. <3 REACT COMPONENTS • Render to string • Unit test

    (Jest) • Virtual DOM • The power of JavaScript
  7. So, we're putting logic, markup, styles and data fetching inside

    of a React component. Running out of ideas, what else should we put there? - Christophe Chedeau @vjeux