1. What is React?
2. Milestone of React.
3. Why to use React?
4. Why is it so Famous?
5. Folder Structure of React.
6. Setting and Installing Environment for React.
7. Import & Export
8. Real DOM & Virtual DOM
9. JSX
10.Components
11.CSS / TAILWIND CSS / CSS MODULES
12.CONDITIONAL RENDERING
13.PROPS
14.Calling Function
15.REACT ROUTER DOM
16.STATE - REACT VARIABLE / HOOKS
17.EVENTS HANDLING
18.LIST & KEYS
19.Rendering JSON Data
20.useEffect
21.Context API
22.DEPLOYMEN
/ Learn Coding
1. What is React
React?
React is a JavaScript library used for building
user interfaces, particularly for single-page
applications. It allows developers to create
reusable UI components and efficiently update
and render them as data changes.
2. Milestones of React?
React
•2011: Created by Jordan Walke at Facebook.
•2013: Open-sourced at JSConf US.
•2015: React Native launched.
•2017: Fiber (React 16) introduced.
•2020: React 17 released, focusing on backward
compatibility.
•2022+: React grows with Suspense, Concurrent Mode,
and more.
3. Why Use React?
React
•Reusable Components: Simplifies development.
•Virtual DOM: Ensures fast updates.
•Community Support: Large ecosystem of libraries.
•Declarative: Focuses on what to do, not how to do it.
/ Learn Coding
4. Why is React So Famous?
Backed by Facebook.
Excellent for dynamic web apps.
Strong developer tools like React DevTools.
Highly adaptable with libraries like Redux and Context
API.
5. Folder Structure of React
src folder: Core app
files (e.g., App.js,
components,
assets).
public folder: Static
files (e.g., index.html).
node_modules:
Installed npm
packages.
package.json: App
metadata and
dependencies.
/ Learn Coding
6. Setting and Installing Environment
for React
•Install Node.js and npm.
•Run npm create vite@latest
•Navigate to the folder:
•Start development: npm start.
7. Import & Export
Import: Use import to bring modules into a file.
Example: import Component from './Component';
Export: Share code across files.
Example: export default Component;
8. Real DOM vs. Virtual DOM
•Real DOM: Updates the whole DOM tree.
•Virtual DOM: Updates only the changed elements,
improving performance.
9. JSX
JSX (JavaScript XML) allows writing HTML-
like syntax in JavaScript.
Example:
<h1>Hello, World!</h1>.
JSX is compiled to React.createElement
calls.
/ Learn Coding
10. Components
Body:
Functional Components: Written as functions (e.g.,
function
Component()).
Class Components: Use ES6 classes and support
lifecycle methods.
11. CSS / Tailwind CSS / CSS Modules
•CSS: Standard styling language (e.g., style.css).
•Tailwind CSS: Utility-first CSS framework.
•CSS Modules: Scoped CSS for components
(Component.module.css)
tailwind css
/ Learn Coding
12. Conditional Rendering
Render elements based on conditions.
Example:
tailwind css
13. Props
Props are arguments passed to components for
dynamic data.
Example:
tailwind css
14. Calling Function
Call functions on events like clicks.
Example:
tailwind css
/ Learn Coding
15. React Router DOM
Routing library for navigation in React apps.
Example:
tailwind css
16. State - React Variable / Hooks
State holds dynamic data and can be updated using
hooks like
useState.
Example:
tailwind css
/ Learn Coding
17. Events Handling / Forms
Capture user inputs and manage form submissions.
Example:
tailwind css
18. List & Keys
Render lists using map() with unique keys.
Example:
tailwind css
/ Learn Coding
19. Rendering JSON Data
Display JSON data by iterating over it.
Example
tailwind css
20. useEffect
Run side effects in functional components.
Example:
tailwind css
21. Context API
Share state globally without pop drilling.
Example:
tailwind css
/ Learn Coding
22. Fetching API
Retrieve data from an API using fetch or libraries like
Axios
Example:
tailwind css
23. Deployment
Host your React app on platforms like Vercel ,
Netlify, or GitHub Pages .
Deploy to Vercel: Connect GitHub repository and
deploy.
See More In React One Shot Tutorial
/ Learn Coding