Hey 👋 Developers!
✨ What is React?
React is a front-end library developed by Facebook, used to build interactive elements on websites.It follows the component-based approach which helps in building reusable UI interfaces.
✨ What are the main features of React?
React uses a Virtual DOM to improve efficiency.It uses reusable UI components to develop user interfaces
✨ What are the advantages of React?
It is easy to learn and use Excellent cross-platform support Provides amazing developer tools UI-focused designs Because of JSX, code’s readability increases
✨ What are the limitations of React?
React is just a library; it is not a complete framework. We might need to add additional packages to extend the functionality.
✨ What is JSX?
✨ What are events in React?
An event is an action that triggers as a result of the user action or system-generated event like a mouse click, loading of a web page, pressing a key, window resizes, etc.
✨ Why is there a need for using keys in lists?
A key is a unique identifier and it is used to identify which items have changed, been updated or deleted from the lists.It also helps to determine which components need to be re-rendered instead of re-rendering all the components every time; therefore increasing performance
✨ Do browsers understand JSX code?
✨ What is prop drilling?
Prop Drilling is an anti-pattern in React. It happens when you pass data from one component to many deeply nested children components. The solution for getting rid of props drilling is to use React Context API or Redux.
✨ How many elements can a valid React component return?
A valid React component can return only one element.
... and that was it for today