Skip to main content

Command Palette

Search for a command to run...

10 Things I Wish I Knew Before Learning React

Published
3 min readView as Markdown
10 Things I Wish I Knew Before Learning React

Learning React was a game-changer in my web development journey — but it wasn’t all smooth sailing. Like many beginners, I jumped into React without fully understanding the ecosystem, and I learned a lot of things the hard way.

In this article, I’ll share 10 key lessons I wish I knew before diving into React. If you’re just starting out, I hope this helps you avoid some of the confusion and frustration I went through.


1. 🧠 React Is Just JavaScript

At first, I thought React was a completely different language. But here’s the truth: React is just JavaScript — with some new patterns and a JSX twist. If your JS fundamentals are weak, you’ll struggle. So focus on things like:

  • Functions and scope

  • Arrays & objects

  • ES6+ features (map, filter, destructuring)


2. 🔄 “Re-render” Isn’t a Scary Word

React’s rendering logic can be confusing at first. I thought every small state change would break my app. Over time, I learned:

  • React is fast — it re-renders efficiently.

  • State changes trigger re-renders.

  • Not all re-renders are bad — they’re what make the UI reactive!


3. 📦 Component Design Is an Art

I used to write massive components that did everything. That’s a mistake. Break your UI into small, reusable pieces. A good rule of thumb:

  • One component = one responsibility

  • If your component has too many useStates — maybe split it


4. 🔁 You’ll Use useEffect a Lot — Learn It Well

useEffect is powerful but tricky. I abused it at first, triggering infinite loops or unnecessary fetches. I eventually learned:

  • Always define dependencies clearly

  • Think of useEffect as “after render” logic

  • Clean up subscriptions, timeouts, etc.


5. 🧪 Debugging React Is a Skill

Don’t panic when things break. React DevTools is your best friend. Learn to:

  • Inspect components

  • Check props and state

  • See re-renders in real-time

Also, console.log is still super useful!


6. 🪄 Styled Components? Tailwind? CSS Modules? Pick One

I jumped between so many styling methods. Pick one and get good at it first. Personally, I stuck with Tailwind CSS because:

  • It’s fast

  • It keeps styles in the component

  • It scales well with utility-first design

But any method is fine — consistency > trend.


7. 🚀 React Is Just the View Layer

React doesn’t handle:

  • Routing

  • API fetching

  • Global state (well, not everything)

You’ll need to learn tools like:

  • react-router-dom for navigation

  • axios or fetch for APIs

  • zustand, Redux, or Context for state (when needed)


8. 🔐 Start Simple with State Management

At first, I thought I needed Redux. I didn’t. If your app is small, useState and useContext are plenty. Only reach for global state when:

  • You share state between distant components

  • You have complex update logic


9. 📂 Structure Your Folders Early

A clean folder structure saves headaches. Try something like:

src/
 ┣ components/
 ┣ pages/
 ┣ hooks/
 ┣ assets/
 ┣ utils/

Keep it scalable, even if your app is small now.


10. ⌨️ Keep Building. Don’t Just Watch Tutorials

This one is the most important. You won’t learn React by watching tutorials alone. You have to build. Even if it’s:

  • A to-do app

  • A weather app

  • A blog with dummy data

Build something. Break things. Learn by doing.


🎯 Final Thoughts

React is powerful, but it has a learning curve. Don’t get discouraged if it doesn’t click right away. These 10 lessons made my learning curve a lot smoother — I hope they help you too.

What would you add to this list? Let me know in the comments or connect with me on [YourSocialHandle]

More from this blog

M

MD Biddut Hossen

22 posts

I'm Md Biddut Hossen, CMO at Visernic Limited. I specialize in innovative marketing strategies and driving growth through digital transformation