Reactjs 100 One Liner Questions and Answers 1692938721
Reactjs 100 One Liner Questions and Answers 1692938721
TOP-100
BASIC TO ADVANCE ONE-LINER QUESTIONS
Certainly! Here are 50 important questions and answers for React:
1. **What is React?**
React is a JavaScript library for building user interfaces.
2. **What is JSX?**
JSX is a syntax extension for JavaScript used in React to write HTML-like code within JavaScript.
7. **What is a prop?**
Props (short for properties) are inputs to a React component that are passed down from its parent.
33.
43. **What are the differences between `localStorage`, `sessionStorage`, and `cookies` in React?**
`localStorage` and `sessionStorage` store data on the client-side, while `cookies` are also sent to the server with
every request.
64. **What are CSS-in-JS libraries, and why might you use them in React?**
CSS-in-JS libraries allow you to write CSS styles directly in your JavaScript code, providing scoped styles and better
performance.
bundle into smaller chunks to load only the necessary parts when needed.
THANK YOU