201506251117_ "react--required knowledge, main technology"

Source: Internet
Author: User

1. Basic knowledge of iOS is required.

2. JSX syntax

3. Virtual DOM, one-way data injection (virtual DOM to real DOM)

4. React knowledge view, can be used in conjunction with other class libraries

5. Important Methods:

A. render ();--Returns the components of some columns.

B. this.props;--Gets the data that the parent component passes to the child component.

C. this.setstate ({data:data});--For dynamic update status, setting data; (UI is updated automatically after setting)

D. Getinitialstate ();---only once for the lifetime of the entire component, to initialize the data;

E. Componentdidmount ();--automatically invoked after render, used to asynchronously fetch data and update data;

6. Execution order

Getinitialstate () Initialize data--〉render () render initialization data--〉componentdidmount () asynchronously Get Data--〉setstate () Update data

7. How do I communicate between components?

For example:

<parent><child/></parent>

Parent component can get to subcomponent: This.props.children

8. Specific reference: http://www.html-js.com/article/2864

201506251117_ "react--required knowledge, main technology"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.