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

React Tech

Firdaus
March 26, 2017

React Tech

Little preview about what we can do with React + React Native at Facebook Developer Circles: Surabaya

Firdaus

March 26, 2017
Tweet

More Decks by Firdaus

Other Decks in Technology

Transcript

  1. - …controllers - …directives - …templates - …global event listener

    - …models - …no view models #1 – Everything is a Component React has no …
  2. - …controllers - …directives - …templates - …global event listener

    - …models - …no view models #1 – Everything is a Component React has no … Just Component
  3. #1 – Everything is a Component And Components must be

    composable, reusable, maintainable, and testable (If Components are truly self-contained )
  4. - No Framework: Any Component can communicate with any other

    component #2 – Single Source of Truth
  5. - No Framework: Any Component can communicate with any other

    component - Backbone: Pub-sub #2 – Single Source of Truth
  6. - No Framework: Any Component can communicate with any other

    component - Backbone: Pub-sub - Angular: 2-way data binding #2 – Single Source of Truth
  7. - No Framework: Any Component can communicate with any other

    component - Backbone: Pub-sub - Angular: 2-way data binding - React: 1-way data flow #2 – Single Source of Truth
  8. - A pure javascript, in-memory representation of the DOM -

    render() fires whenever something changes #3 – Virtual DOM
  9. - A pure javascript, in-memory representation of the DOM -

    render() fires whenever something changes - It’s Fast #3 – Virtual DOM
  10. - A pure javascript, in-memory representation of the DOM -

    render() fires whenever something changes - It’s Fast - Touching the dom is Evil, and Having state in the DOM… it’s nightmare #3 – Virtual DOM
  11. - State (Mutable) - Props (Immutable) - Components Coupling -

    Components Lifecycle Things you’ll face with React
  12. - State (Mutable) - Props (Immutable) - Components Coupling -

    Components Lifecycle - JSX (JavaScript XML, a prepocessor that makes React a lot more elegant) Things you’ll face with React
  13. - It’s Framework, while ReactJs is Library - Same codestyle

    with ReactJs - Truly Native Mobile Apps for iOS and Android (Windows ?) About React Native
  14. - It’s Framework, while ReactJs is Library - Same codestyle

    with ReactJs - Truly Native Mobile Apps for iOS and Android (Windows ?) - Faster than Hybrid Tech (Cordova) About React Native
  15. - It’s Framework, while ReactJs is Library - Same codestyle

    with ReactJs - Truly Native Mobile Apps for iOS and Android (Windows ?) - Faster than Hybrid Tech (Cordova) - Shared codebase (ex: validation, utils, internationalization, etc) About React Native
  16. - Backing with Big Companies - Big Community - Not

    impressed with Mobile Apps ? What about : - Desktop (https://github.com/ptmt/react-native-macos) - TV (https://github.com/douglowder/react-native-appletv) - SmartWatch ? Or any gadget maybe ? Promising Future
  17. Conclusion 1 Learn Once, Write Everywhere 2 No more Civil

    War, Choose based on your needs 3 Cost Efficiency
  18. Conclusion 1 Learn Once, Write Everywhere 2 4 No more

    Civil War, Choose based on your needs Do it First Do it Right Do it Better 3 Cost Efficiency
  19. T. HANKS Headquarter 13 Ave. Ballarta Barcelona, Spain EUROPE OFFICE

    45 Calle Norte Argentina SOUTH AMERICA OFFICE 1243 Barker Cypress San Francisco, California UNITED STATES OFFICE