State of a component is a object that holds the values that may change over time. We should always try to make less states in app. State is generally initalized with the inital value. State is similar to props, but it is private and fully controlled by the component. i.e, It is not accessible to any other component til the owner component decides to pass it.
function user(){
const [count, setCount] = useState(0);
return(
<div>
This is the current count = {count}
</div>
)
}