Thinking in React
  • References/JavaScript/React/Guides

by Pete Hunt React is, in my opinion, the premier way to build big, fast Web apps with JavaScript. It has scaled very well for us at Facebook

2025-01-10 15:47:30
React.createFactory
  • References/JavaScript/React/React

React.createFactory factoryFunction createFactory( string/ReactClass type )

2025-01-10 15:47:30
getInitialState
  • References/JavaScript/React/Component

getInitialState object getInitialState() Invoked

2025-01-10 15:47:30
React.createElement
  • References/JavaScript/React/React

React.createElement ReactElement createElement( string/ReactClass type, [object props]

2025-01-10 15:47:30
React.Children.count
  • References/JavaScript/React/React

React React is the entry point to the React library. If you're using one of the prebuilt packages it's available

2025-01-10 15:47:30
Self-Closing Tag
  • References/JavaScript/React/Tips

In JSX, <MyComponent /> alone is valid while <MyComponent> isn't. All tags must be closed, either with the self-closing format or with

2025-01-10 15:47:30
JSX in Depth
  • References/JavaScript/React/Guides

JSX is a JavaScript syntax extension that looks similar to XML. You can use a simple JSX syntactic

2025-01-10 15:47:30
Shorthand for Specifying Pixel Values in style props
  • References/JavaScript/React/Tips

When specifying a pixel value for your inline style prop, React automatically appends the string "px" for you after your number value, so this works:

2025-01-10 15:47:30
PureRenderMixin
  • References/JavaScript/React/Guides

If your React component's render function is "pure" (in other words, it renders the same result given the same props and state), you can use this mixin for a performance boost

2025-01-10 15:47:30
Animation
  • References/JavaScript/React/Guides

React provides a ReactTransitionGroup add-on component as a low-level API for animation, and a ReactCSSTransitionGroup for easily implementing basic

2025-01-10 15:47:30