/* React is a lightweight yet powerful JavaScript framework for creating user interfaces.
It solves many problems of developer, like easy state management and updating, creating interactive UIs, a big library support, routing, reusable components (write once use everywhere) and a huge community of developers working day and night to improve the framework.
After the introduction of react hooks in React 16.8, function component are now the standard way of writing react components, so it is recommended that a new developer focuses more or functional components rather than class based components.
In react we can write both HTML and JavaScript in the same file (called JSX syntex), it gives us more control and facilities over our code.
** Note - Some developers say it's a library not a framework (this is arguable but does not make a difference for the react itself). On official React website it is said to be a library. */
// How to you write a simple react component (In TypeScript)
import React from 'react'
function Component(){
const name = "Himanshu"
return (
<h1>Hello {name}</h1>
)
}
export default Component