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

Going Production with ReactJS

Firdaus
September 03, 2017

Going Production with ReactJS

How to deliver ReactJS on production, at Bekraf Developer Day 2017 with Dicoding

Firdaus

September 03, 2017
Tweet

More Decks by Firdaus

Other Decks in Technology

Transcript

  1. G o i n g P r o d u

    c t i o n w i t h ReactJS BEKRAF Developer Day 2017 03 Sept, Shangri-La Hotel Surabaya
  2. 1. Run on server / client side. Hail NodeJS… 2.

    Team Separation Concern 3. Better Code Maintainability 4. Friendly with Microservices 5. It’s API Centric Application Benefit
  3. 1. First load page, server return pre-rendered html string 2.

    Client-side js app bootstraps on top of server rendered html 3. From that point, it’s a client side app How it works
  4. 1. Usually javascript framework render on DOM load (which can

    be really slow) 2. Bad for user experience 3. SEO benefit Why ?
  5. 1. It’s small library & Fast 2. Single source of

    truth 3. Makes writing Javascript easier with JSX 4. Awesome for SEO 5. Bonus: Mobile Apps using React Native 6. Shared codebase (ex: validation, utils, i18n, etc) Why ?
  6. 1. It’s all about Components 2. JSX 3. Props and

    State 4. Component Lifecycle 5. Component Types & Roles Keys to Learn ?
  7. 1. Uber 2. Airbnb 3. Twitter 4. Tesla 5. Slack

    Who’s using on Production ? More on : 
 https://github.com/facebook/react/wiki/sites-using-react 6. Pinjam.co.id 7. Traveloka 8. Salestock 9. Hijup 10. Kumparan
  8. 1. Small budget… Whuahahhaaha.. 2. Simple Apps 3. Not developing

    crossplatform apps 4. Doesn’t care about scalability Attention !! Don’t use ReactJS if :
  9. 1. Choose based on your needs 2. Cost Efficiency 3.

    Beware about learning time Conclusion
  10. “Don’t worry if it doesn’t work right. If everything did,

    you’d be out of a job” — Mosher’s Law of Software Engineering --