Components are the building blocks of React. If you’re coming from an Angular background, components are very similar to Directives. If you’re coming from a different background, they’re essentially widgets or modules. You can think of a component as a collection of HTML, CSS, JS, and some internal data specific to that component. I like to think of React components as the Kolaches of the web. They have everything you need, wrapped in a delicious composable bundle. These components are defined either in pure JavaScript or they can be defined in what the React team calls “JSX”. If you decide to use JSX (which you most likely will, it’s pretty standard – and it’s what we’ll use for this tutorial), you’ll need some compile stage to convert your JSX to JavaScript, we’ll get to this later.
Your new post is loading...
Pt I: A Comprehensive Guide to Building Apps with React.js.
Pt II: Building React.js Apps with Gulp, and Browserify.
Pt III: Architecting React.js Apps with Flux. (Coming Soon)
Pt IV: Add Routing to your React App with React Router. (Coming Soon)
Pt V: Add Data Persistence to your React App with Firebase. (Coming Soon)
Pt VI: Combining React.js, Flux, React Router, Firebase, Gulp, and Browserify. (Coming Soon)