What is React

React is a fast, component-based, front-end JavaScript library. React typically runs in your browser and renders single-page web application user interfaces (and thanks to React-Native, mobile application user interfaces as well).

Image for post
Image for post

React breaks web elements down into re-usable components making it easy to manage complex web interfaces.

Image for post
Image for post

React’s virtual DOM makes rendering updates fast and efficient. The Virtual DOM is a JavaScript representation of the actual DOM. When updates are made React compares the current DOM to the virtual DOM and only updates the differences between the two.

Image for post
Image for post

React uses declarative JSX which is an HTML-style syntax inside of JavaScript. React components can be reused and declared using JSX. The Babel compiler converts JSX to JavaScript which renders the HTML view.

Image for post
Image for post

React handles the majority of DOM rendering, so your index.html file begins as a simple div where React will append the DOM elements.

Image for post
Image for post

Next we’ll walk through making a React component.

Byte-sized React

Brief, visual React tips and tutorials.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store