React Componets

This are the Real-Deal, because they can change state in response to “User-Events” and “Server-Events“, basically we can say:

React-Component  ===  Rreact-Element  +  State-Machine.

This are the Building blocks from the User Interfaces that we see online.

Example:

Using a variable to choose what component to Render.

this.props.abc

Passing Promps to Nested Components:

Passing Promps to CHILD Components:

The SPREAD-OPERATOR:

Very similar code the the one above.

Statics & Random Colors:

Validation with:   React.PropTypes.xyz

 

.



Copyright 2017. All rights reserved.

Posted February 26, 2017 by Edmundo in category "React