1. What does React actually do?
Answer: What does React actually do? React is a JavaScript library developed by Facebook which, among other things, was used to build Instagram.com. Its aim is to allow developers to easily create fast user interfaces for websites and applications alike. The main concept of React. js is virtual DOM.
2. What is difference between props and state in React?
Answer: State is the local state of the component which cannot be accessed and modified outside of the component. It's equivalent to local variables in a function. Props, on the other hand, make components reusable by giving components the ability to receive data from their parent component in the form of props.
3. Without useEffect dataload how many way we can use useEffect?
Answer: We can use the useEffect Hook Usages.The callback function we pass to the useEffect hook runs the side effects.React runs it on every render of a component by default.