DAY 16 OF POSTING REACT CONTENT ⚛️ React didn’t start with Hooks. Earlier, React components were written using classes. They worked, but understanding this, lifecycle methods, and structure took time. In 2018, React introduced Hooks. Hooks allowed developers to write components as simple functions, manage state without classes, and avoid this completely. Classes are still supported. But Hooks became the preferred way because they made React easier to read, write, and maintain. React didn’t remove classes — it just found a simpler way forward. #ReactJS #ReactBasics #JavaScript #FrontendDevelopment #LearnInPublic #WebDevelopment #CodingJourney
React's Evolution: From Classes to Hooks
More Relevant Posts
-
Day 29 of Posting React Content 📌 What Is useRef? 🧠 Imagine This You’re studying. You keep a small sticky note beside you. On that note, you write: “Revise React at 7 PM.” That note: 📝 Stores information 📝 Stays there 📝 Doesn’t disturb your study 📝 Doesn’t restart your work It just sits quietly. 💡 In React Sometimes you need something that: 📌 Stores a value 📌 Stays between renders 📌 Does NOT cause the screen to update That’s what useRef does. It’s like a sticky note inside your component. You can: ✨ Store a value ✨ Access a DOM element ✨ Focus an input ✨ Track previous values And React will NOT re-render because of it. One Clear Difference useState → changes UI when updated useRef → stores value silently #ReactJS #ReactHooks #useRef #FrontendDevelopment #JavaScript #ReactInterview #LearnInPublic #CodingJourney
To view or add a comment, sign in
-
-
DAY 20 OF POSTING REACT CONTENT ⚛️ WHAT DOES await REALLY DO? 🤔 await tells JavaScript: 👉 “Wait here until the Promise finishes.” It pauses the function until the result is ready. Example: async function getData() { const data = await fetchData(); console.log(data); } The code waits for fetchData() before moving to the next line. Cleaner than .then() Easier to read Same result #ReactJS #JavaScript #AsyncAwait #Promises #FrontendDevelopment #LearnInPublic #WebDevelopment #CodingJourney
To view or add a comment, sign in
-
-
Understanding React Components React applications are built using components, which are reusable and independent pieces of UI. Instead of writing one large file, we break the UI into smaller parts Types of Components 1)Functional Components 2)Class Components In modern React, we mainly use functional components, which are simple JavaScript functions that return JSX. Core Rules of React Components Component Name Must Start with Uppercase Must Return a Single Parent Element Do Not Modify Props Understanding components made React feel more structured and practical. Building step by step and strengthening fundamentals 🚀 #ReactJS #FrontendDevelopment #WebDevelopment #LearningJourney #JavaScript
To view or add a comment, sign in
-
-
I was literally stuck while trying to understand the Context API in React. I explored many tutorials, but the concept still wasn’t completely clear. Finally, I came across the React playlist by @VinodBahadurThapa on the YouTube channel Thapa Technical, and it completely changed my understanding. The explanation of Context API was simple, practical, and beginner-friendly. Now, it feels smooth and much more logical to implement in real projects. Grateful for such quality content that genuinely helps developers grow. 🙌 If you're struggling with React concepts, I highly recommend checking out the playlist. #ReactJS #ContextAPI #FrontendDevelopment #JavaScript #LearningJourney #WebDevelopment
To view or add a comment, sign in
-
-
Lately, I've been diving deeper into React to understand how it actually works under the hood. Not just building components, but exploring things like: • How React handles re-renders • State management patterns • Performance optimizations • The internal logic behind hooks • How React's rendering process works It’s easy to use React, but truly understanding why things work the way they do is where real learning begins. My goal right now is simple: Go beyond tutorials and build a stronger foundation. 🚀 #reactjs #webdevelopment #javascript #frontend #developerjourney
To view or add a comment, sign in
-
-
Today something interesting happened while I was building a Custom Date Picker in NextJS.🗓 I have used useRef many times before, but honestly I was mostly using it without fully understanding the concept behind it But today… it finally clicked.💫 While implementing the feature, I realized that: • useRef creates a mutable object • The value is stored inside .current • The value persists between renders • Updating .current does not trigger a re-render • It can also be used to directly access DOM elements The most interesting part for me was understanding why React doesn't re-render when current changes. Sometimes you don’t truly understand a concept until you build something real with it. Small learning today, but a very satisfying one. 💫 What was the React concept that took you the longest to understand❓️ #React #JavaScript #FrontendDevelopment #ReactHooks #BuildInPublic #LearningJourney
To view or add a comment, sign in
-
DAY 17 OF POSTING REACT CONTENT ⚛️ HOW DOES REACT USE CODE FROM ONE FILE IN ANOTHER? 🤔 In React, each component usually lives in its own file. To use a component somewhere else, JavaScript provides two simple tools: 👉 export — to make something available 👉 import — to use it in another file This keeps code: organized reusable easy to manage React doesn’t work without this. Every component connection starts here. #ReactJS #JavaScript #ReactBasics #FrontendDevelopment #LearnInPublic #WebDevelopment #CodingJourney
To view or add a comment, sign in
-
-
Day 34 of Posting React Content 📦 What are Props in React? 🧠 Imagine This Your friend asks you to deliver a gift. The gift box may contain: 🎁 a book 🎧 headphones 🍫 chocolates The box is the same, but the content inside changes. 💡 In React A component is like the box. Props are the data we send inside it. The same component can show different information depending on the props it receives. Props can carry data like text, numbers, images, or functions. ✨ One Line Understanding Component → reusable box Props → data inside the box #ReactJS #ReactProps #FrontendDevelopment #JavaScript #LearnInPublic #CodingJourney #WebDevelopment
To view or add a comment, sign in
-
-
Day 32 of Posting React Content 🧠 What is useCallback? 🎓 Imagine This You enter your college every day. The security guard checks your ID card. You don't explain who you are every time. You just show the same ID card. 💡 In React Sometimes a parent component sends a function to a child component. When React renders again, that function gets created again and again. useCallback prevents this. It keeps the same function and reuses it until something changes. ✨ One Line Understanding Normal React → function recreated every render useCallback → same function reused #ReactJS #ReactHooks #useCallback #FrontendDevelopment #JavaScript #LearnInPublic #CodingJourney #WebDevelopment
To view or add a comment, sign in
-
-
🚨 A small TypeScript mistake I still see in React projects Many developers type their state setters as - (val: number) => void. It looks correct - but it silently breaks a core React feature. React state setters don't just accept a value - they also accept a function. This is essential when your next state depends on the previous one. If you type the setter wrong, functional updates won't typecheck. You've locked yourself out of a feature React gives you for free - and opened the door to subtle bugs. Typing setters correctly means: React's full API stays intact, refactors are safer across your codebase, and state bugs from stale closures become much harder to introduce. It's one line of types. But in a large codebase, it's the difference between code that works and code that works until it doesn't. If you use TypeScript with React, don't throw this away. #TypeScript #React #JavaScript #Frontend #CodingTips
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development