Simple Contact App: ES6, Prop Validate, Data flow and Component Communication
ReactJS: Prop Validation
When creating components, remember that they can be composed into bigger components and reused (in the same project, in other projects, by other developers). Therefore, it is a good practice to make explicit in your components which props can be used, which ones are required, and which types of values they accept.
ReactJS: Working with form
In React, a component’s internal state is kept to minimum because every time the state changes, the component is rendered again. The purpose of this is to have an accurate representation of the component state in your JavaScript code and let React keep the interface in sync.
For this reason, form components such as <input>, <textarea>, and <option> differ from their HTML counterparts because they can be mutated via user interactions.
ReactJS – Component Lifecycle
Ở bài viết này mình sẽ giới thiệu các bạn những callback function được gọi trong xuyên suốt chu trình khởi tạo cho đến hủy 1 component. Mình sử dụng phiên bản mới nhất ở thời điểm viết bài này là 0.13.3
Hello World ReactJS
React.js là 1 thư viện JavaScript tạo ra bởi Facebook.
http://facebook.github.io/react/
Như khái niệm trên trang web chính thức “A JavaScript library for building user interface”, React.js là một thư viện sinh ra để xây dựng giao diện người dùng (UI). Nó không phải là Framework mà chỉ là thư viện, do đó trong MVC nó sẽ tương ứng với phần V.