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

Web aplikacije budućnosti - React ekosistem

Ilija Tešić
December 20, 2017

Web aplikacije budućnosti - React ekosistem

Uvod u ReactJS ekosistem, tehnologije i alate koji se koriste.

Ilija Tešić

December 20, 2017
Tweet

More Decks by Ilija Tešić

Other Decks in Programming

Transcript

  1. Gomila nepoznatih pojmova • JS engine • DOM • Transpiling

    • Bundling • Linter • API • JSON • ES6 • Pure functions • Git • lodash • Arrow funkcije • Spread operator • . . .
  2. React ekosistem • Dependency management ◦ npm ili yarn •

    User Interface ◦ React • State management ◦ Redux • Routing ◦ React router • Transpiling and bundling ◦ Babel ◦ Webpack • Testing ◦ Jest i Enzyme
  3. User Interface • React je UI biblioteka (nije framework) •

    Zasnovan je na komponentama • Virtual DOM • One way data binding • JSX • Controlled inputs
  4. State management • Predictable state container for JS apps •

    Store • Actions • Reducers • Ključni principi ◦ Single source of truth ◦ State is read only ◦ Changes are made with pure functions
  5. Transpiling and bundling • Webpack povezuje sve module u jedan*

    bundle • Babel pretvara ES6* kod u JS koji je podržan u svakom okruženju • Hot reload • Webpack dev server
  6. Zašto biste koristili React? • Arhitektura je zasnovana na komponentama

    • Veoma je brz jer ima Virtual DOM • Nije framework tako da nema bespotrebnih stvari • Mogu se pisati mobilne aplikacije (React Native) • JSX je deklarativan i lak za razumjevanje • Lako testiranje komponenti • Facebook stoji iza njega • Ogromna zajednica razvija React i ostale module