What is React?

Thread🧵
React is a JavaScript library for building
user interfaces. It is the view layer for web applications.
At the heart of all React applications are components. A component is a self-contained module that renders some output.
We can write interface
elements like a button or an input field as a React component. Components are composable. A component might include one or more other components
in its output.
Broadly speaking, to write React apps we write React components that
correspond to various interface elements. We then organize these
components inside higher-level components which define the structure of
our application.
For example, take form. A form might consist of many interface elements, like input fields, labels, or buttons. Each element inside the form can be
written as a React component. We'd then write a higher-level component, the form component itself.
The form component would specify the structure
of the form and include each of these interface elements inside of it.
Importantly, each component in a React app abides by strict data
management principles.
Complex, interactive user interfaces often involve
complex data and application state. The surface area of React is limited and aimed at giving us the tools to be able to anticipate how our application will look with a given set of circumstances.

#100DaysOfCode
You can follow @_ManthanPatel.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.