Day 15 #100DaysOfCode 💻 Today I learned how to set up React in VS Code and understood the basic idea of React Components. First, I installed React using Vite and ran the project in VS Code. Then I learned that in React, a function can act as a component and can be used like an HTML tag. Example: function Header() { return <h1>Hello React</h1>; } function App() { return ( <div> <Header /> </div> ); } This means React allows us to build reusable UI pieces using functions. Small step, but an important start in my React journey 🚀 #ReactJS #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #Akbiplob
Setting up React in VS Code and Understanding Components
More Relevant Posts
-
React JS Suspense Cheat Sheet A quick guide to React Suspense for handling async components and data loading. Learn how fallback UI works, lazy loading with React.lazy(), and how Suspense improves performance and user experience in modern React apps. #ReactJS #ReactSuspense #FrontendDevelopment #JavaScript #WebDev #ReactDeveloper #MERNStack #Coding
To view or add a comment, sign in
-
🚀 Master React Router in Minutes! Here’s a simple breakdown of everything you need to know: ✅ What is Routing ✅ SPA Concept ✅ Static vs Dynamic Routes ✅ useParams() ✅ Protected Routes 💡 Key Takeaways: React uses SPA (Single Page Application) Routing helps display components based on URL Dynamic routes make apps scalable Protected routes secure your app 📌 If you're learning React, this is a must-know concept! Let me know in comments 👇 What topic should I cover next? #React #WebDevelopment #Frontend #JavaScript #ReactJS #Coding #LearnToCode
To view or add a comment, sign in
-
New Features in React 19 React keeps evolving — and with every new version, it makes building modern applications smoother and more powerful. In today’s post, I’ve shared the key features introduced in React 19, focusing on what actually matters for developers in real-world projects. From improvements in handling async operations to better performance and developer experience, these updates aim to simplify how we build and manage UI. I’ve broken things down in a simple way so you can quickly understand what’s new and how it impacts your day-to-day development. If you’re working with React or planning to upgrade, knowing these features will help you stay ahead and write more efficient code. 👇 Which React 19 feature are you most excited to try? #learningoftheday #FrontendDevelopment #WebDevelopment #JavaScript #React #CodingCommunity #ReactJS
To view or add a comment, sign in
-
Most React developers are writing useEffect wrong. Not because they don't understand it. Because they think they do. After 3 years of building React apps here's what I've learned the hard way: ❌ You don't need useEffect to derive state. ❌ You don't need useEffect to sync two pieces of state. ❌ You definitely don't need useEffect to handle a user event. useEffect is for syncing React with something OUTSIDE React. That's it. That's the rule. When I first started, I put everything in useEffect. Fetch calls. Transformations. Even click handler logic. The bugs were subtle. The re-renders were endless. And the codebase became a nightmare to debug. The fix? Think before you reach for it. Ask yourself: "Am I escaping React, or am I fighting it?" If you're fighting it — useMemo, useCallback, or plain derived variables will serve you better. React is not hard. But undisciplined useEffect usage will make it feel that way. Drop a 🔁 if you've fallen into this trap before. And follow for more no-fluff React breakdowns 👇 #ReactJS #FrontendDevelopment #JavaScript #WebDev #ReactHooks #SoftwareEngineering
To view or add a comment, sign in
-
🚀 Understanding React.useEffect Hook — Simplified! If you're working with React, mastering useEffect is not optional — it’s essential. This single hook controls how your app interacts with the outside world 💡 What is useEffect? It’s a built-in hook that runs after your component renders, helping you manage side effects like: 🔹 API calls 🔹 Event listeners 🔹 Timers 🔹 DOM updates ⚙️ How it works 1️⃣ Runs after initial render 2️⃣ Re-runs when dependencies change 3️⃣ Cleans up before next run or unmount 🧠 Real-world use cases ✔ Fetching data from APIs ✔ Handling WebSocket subscriptions ✔ Managing intervals & timeouts ✔ Updating page title dynamically 🔥 Best Practices (Most developers miss this!) ✅ Always use dependency array correctly ✅ Include all dependencies (avoid bugs) ✅ Cleanup side effects to prevent memory leaks ✅ Split logic into multiple useEffects ❌ Don’t overuse useEffect unnecessarily 💬 Pro Insight: A clean useEffect = Better performance + Fewer bugs + Scalable code 📌 Save this post & follow for more practical frontend insights! #ReactJS #useEffect #FrontendDevelopment #JavaScript #WebDevelopment #ReactHooks #CodingTips #SoftwareEngineering #FrontendEngineer #FullStackDeveloper #LearnReact #100DaysOfCode 🚀
To view or add a comment, sign in
-
-
🚀 Day 1 of Building React Projects Today I built and deployed a Todo List Application using React.js. This project helped me practice React fundamentals like state management and component-based UI development. ✨ Features: • Add new tasks • Filter tasks (All / Completed / Pending) • Clean and simple UI • Dynamic task updates 🛠 Tech Stack: React.js JavaScript HTML CSS 🌐 Live Demo: https://lnkd.in/dDAU9E7r 💻 Source Code: https://lnkd.in/dup-W67U I’ll be building and sharing more React projects daily as part of my learning journey. #ReactJS #FrontendDevelopment #JavaScript #WebDevelopment #ReactProjects #LearningInPublic
To view or add a comment, sign in
-
🚀 Modern React Lifecycle — Simplified with Hooks Still thinking in terms of componentDidMount and componentDidUpdate? It’s time to upgrade your mental model. React today is all about a clean flow: Mount → Render → Commit → Effect → Cleanup → Re-render → Effect → Unmount 💡 Key shifts to understand: Rendering is pure — no side effects useEffect runs after the DOM is updated Cleanup keeps your app stable and leak-free Dependency arrays control when effects run Whether you're building scalable apps or preparing for senior-level interviews, mastering this flow changes how you write React forever. Take a minute to internalize it — your future self will thank you. #ReactJS #FrontendDevelopment #WebDevelopment #JavaScript #ReactHooks #SoftwareEngineering
To view or add a comment, sign in
-
-
🚀 Day 1 Getting Started with React: Download & Components Guide Today I learned how to set up React and create components 👇 🔽 1. How to Download & Set Up React? - First, install Node.js from the official website (nodejs.org) - Then open terminal and run: 👉 "npm create vite@latest" - Select React and JavaScript - Move into project folder: 👉 "cd myapp" - Install dependencies: 👉 "npm install" - Run the project: 👉 "npm run dev" 🌐 Open in browser: "http://localhost:5173" --- ⚛️ 2. How to Create Components in React? Components are reusable UI blocks 👉 Example: function Hello() { return <h1>Hello World 🚀</h1> } 👉 Use it like this: function App() { return ( <> <Hello /> <Hello /> </> ) } ✨ This will display the same component multiple times --- 💡 Key Learnings: - React setup is easy with Vite - Components make code reusable and clean 📌 Conclusion: Learning React step by step makes development simple and powerful 💯 #ReactJS #NodeJS #WebDevelopment #JavaScript #Frontend #Coding #LearningJourney #Developers
To view or add a comment, sign in
-
Most React devs bring their SPA habits into Next.js — and their users pay the price. 👇 You've written it a hundred times: useState for data, useEffect to fetch it, a spinner while they wait. It works in React. In Next.js App Router, it's the wrong pattern entirely. Server Components let you fetch data inside the component — on the server, before the page hits the browser. No loading state. No extra JS bundle. No hydration issues. HTML that arrives ready. I've swapped dozens of useEffect fetch patterns for async Server Components and the Lighthouse scores jump immediately. Use the server for reads. Use useEffect for things only the browser can do. #NextJS #ReactJS #WebDevelopment #JavaScript #TypeScript #AppRouter #ServerComponents #ReactHooks #FrontendDeveloper #SoftwareEngineer #CleanCode #100DaysOfCode #WebPerformance #Programming #WebDev #NextJS14 #FullStackDeveloper #CodeQuality
To view or add a comment, sign in
-
-
🚀 Mastering React Hooks! 🚀 Ever wondered how to manage state in functional components? React Hooks is the answer! They allow you to add state and other React features to functional components without writing a class. Super convenient, right? 🤩 For developers, mastering React Hooks opens up a whole new world of possibilities in simplifying component logic and making code more readable. So let's dive in step by step: 1️⃣ First, import { useState } from 'react' 2️⃣ Then, declare a state variable using useState hook 3️⃣ Use the state variable and a function to update it Here's an example: ```jsx import React, { useState } from 'react'; function Counter() { const [count, setCount] = useState(0); return ( <div> <p>You clicked {count} times</p> <button onClick={() => setCount(count + 1)}>Click me</button> </div> ); } ``` Pro Tip: Remember to always keep the dependencies array updated to avoid unwanted re-renders! 🌟 Common Mistake Alert: Forgetting to pass all dependencies to the dependencies array can lead to unexpected bugs, so be thorough in checking! ❗️ Ready to level up your React game with Hooks? What cool projects are you planning to build using React Hooks? 💡🛠️ #ReactHooks #JavaScript #WebDev #FrontendDevelopment #StateManagement #LearnToCode #CodeNewbie #TechTips #tharindunipun.lk
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