Introduction
React, a popular JS library for creating user interfaces. It is developed by Meta and released in 2013. React simplifies the process of creating UI by making chunks known as Components.
To define a Component in React, All you needed to do is to write a JS function which returns JSX. It is a syntax which is based on HTML.
const Component = () => <h1>Hi Mom!</h1>
In React, we can:
- Add reactive data using
useState
hook. - Cache calculations using
useMemo
hook. - Perform side-effects with
useEffect
hook. - Grab DOM Elements using
useRef
hook. - And Many More.
Conclusion
React is popular JS Library which revolutionalized Web Development. It has a wide-range of supporting libraries in the ecosystem. In my opinion, React is Awesome. Happy Coding!
Top comments (0)