001. introduction about react

16
001. INTRODUCTION ABOUT REACTJS Presenter: Binh Quan

Upload: binh-quan-duc

Post on 20-Mar-2017

24 views

Category:

Software


0 download

TRANSCRIPT

Page 1: 001. Introduction about React

001. INTRODUCTION ABOUT REACTJS

Presenter: Binh Quan

Page 2: 001. Introduction about React

Introduction

❖ Developed and maintained by Facebook from 2013

❖ Current version: v15.3.2

❖ It’s a view library, not a framework

Page 3: 001. Introduction about React

Why developers choosing React

❖ Website created using ReactJS often faster than others

❖ Reusable views

❖ Large and rapidly grow community

❖ Good solution for building small to medium mobile app

❖ Written in Javascript (most popular)

❖ Extremely easy to write UI tests cases

❖ Can integrate to popular JS Framework such as AngularJS, Backbone, Meteor

❖ React automatically manage all UI updates

❖ Easy of debugging

Page 4: 001. Introduction about React
Page 5: 001. Introduction about React

Why us choosing React

❖ It’s currently the top of trending technology according to StackOverflow statistics

❖ Required by many clients

❖ Build native apps for Android & iOS

❖ Become full-stack developers

❖ Make us “up to date”

❖ Easily reuse component developed in previous project

❖ Building company’s component standard

Page 6: 001. Introduction about React

Things about ReactJS

❖ Javascript in HTML HTML in Javascript

❖ Javascript and HTML together, even CSS

❖ Easy accessing element without using selector (classes, ids)

Page 7: 001. Introduction about React

Cons

❖ It is only a view layer, you have still to plug your code for Ajax requests, events and so on. Some people get surprised by that.

❖ There's a learning curve for beginners who are new to web development.

Page 8: 001. Introduction about React

Things to learn

1.Webpack

2.JSX

3.ES6/ES2016+

4.Babel

5.Event programming

6.Redux

7.Immutable

Page 9: 001. Introduction about React

Webpack

Page 10: 001. Introduction about React

Webpack

❖ Transform resources into static assets

❖ Play as dev server❖ Transform JS into different

formats

What do Webpack do?

❖ Code splitting❖ Loaders❖ Plugin System

What make webpack different?

Page 11: 001. Introduction about React

❖ JSX is easier to visualize than javascript functions

❖ The markup is more familiar to designer and the rest of your team

❖ Your markup becomes more semantic, more meaningful.

Why JSX

Page 12: 001. Introduction about React

❖ OOP❖ String template (multiline

support)❖ Modules❖ Arrow function and block

scope❖ Spread operator

Why ES6 features

Page 13: 001. Introduction about React
Page 14: 001. Introduction about React

❖ State management for whole system❖ One store / Multiple Reducers❖ Dispatching events❖ Connecting React components❖ Server rendering (you don’t need any special API to manage)

Benefits of Redux

Page 15: 001. Introduction about React
Page 16: 001. Introduction about React

Now Demo