
21 | BTech IT 🎓 Somewhere between “how does this work?” and “I can build this.” Coding, tinkering & figuring it out. Documenting my journey.🚀
Joined March 2026
- Tweets21
- Following30
- Followers10
- Likes21
Today I learned Zustand, and my first thought was:
“Wait… where’s the Provider?” 👀
The mental model is ridiculously simple:
→ Create a store
→ Use the store
No <Provider> wrapping.
No extra boilerplate.
What clicked for me:
• create() gives you a custom hook
• set() updates state without manually rebuilding the whole store
• get() lets you access the current state
• Components subscribe only to the state they actually use → fewer unnecessary re-renders
• persist middleware can keep state in localStorage
Redux taught me how state management works.
Zustand is teaching me how little code I might actually need for it. 😄
#ReactJS #Zustand #100DaysOfCode #WebDevelopment #BuildInPublic
2
20
Your server can’t tell the difference between “too much traffic” and “too much trouble.”
That’s where Rate Limiting comes in. 🚦
Today I learned how it helps:
→ Prevent resource starvation during DoS attacks
→ Protect servers from overload
→ Control costly 3rd-party API usage
→ Keep systems predictable under heavy traffic
In microservices, it’s commonly enforced at the API Gateway.
Then came Token Bucket 🪣
Just 2 parameters:
• Bucket size → allowed burst capacity
• Refill rate → how quickly requests can come back
Simple, memory-efficient, and powerful enough that @awscloud uses token-bucket-style throttling in several services to control request rates.
System design is starting to feel less like:
“How do I build it?”
and more like:
“How do I make sure it survives?”
#SystemDesign #SoftwareEngineering #100DaysOfCode #BuildInPublic
1
23
Today Redux Toolkit finally clicked for me.
I used to think Redux was just “global state.”
Turns out, the real magic is understanding the flow:
UI → Action → Dispatch → Store → Reducer → State Update → UI ⚡
I also got hands-on with:
→ State, Slice, Reducer, Action, Store & Selector
→ useSelector to read state
→ useDispatch to trigger actions
→ Provider to make the store available
→ Async Thunk for async logic
Built a simple counter with increment, decrement & reset to understand the whole cycle.
And one thing that cleared up a major confusion:
Async Thunk ≠ useEffect.
useEffect handles side effects in a component.
Async Thunk handles async logic as part of the Redux flow.
The more I learn Redux, the more I realize:
State management isn't about storing state.
It's about controlling how state changes.
What clicked for you first when learning Redux? 👀
#ReactJS #Redux #ReduxToolkit #100DaysOfCode #BuildInPublic
1
2
29
I thought choosing a UI library was about components.
Then I discovered there are thousands of them. 💀
Turns out, it’s really about control.
Explored the UI libraries today:
→ @shadcn/@radix_ui — Own the code. Copy. Customize. Ship.
→ @MaterialUI / @AntDesignUI — Enterprise beasts. Dashboards, tables, admin panels.
→ @mantinedev — The all-rounder. Components + hooks + forms.
→ @daisyui_ — Tailwind + pre-built components. Super beginner-friendly.
(Also, a little nostalgic , I used it a lot when I was starting out. 😭✨)
→ @chakra_ui — Clean APIs + accessibility + great DX.
For a tech portfolio?
shadcn/ui + Aceternity UI / Magic UI
= control + ✨
Because the real question isn’t:
“Which library is best?”
It’s:
“How much control am I willing to give up?”
What’s your pick?
3
24
66,022
Today I met two hooks ⚛️ that solve completely different problems
useMemo → “Don’t recalculate this.”
useReducer → “Don’t let state logic get messy.”
One optimizes computation.
The other organizes state transitions.
useMemo: cache a calculated value when recalculation is expensive.
useReducer: move complex state logic into
state + action → reducer → new state.
Basically:
🧠 useMemo saves computation.
🧩 useReducer saves your sanity.
#ReactJS #100DaysOfCode #BuildInPublic #WebDevelopment
1
37
useRef() 🧠
Turns out, not everything that changes needs a re-render.
useRef gives you a value that:
→ survives re-renders
→ can be mutated without triggering one
→ can directly point to a DOM element
So I built a tiny video controller:
videoRef . current. play() ▶️
videoRef . current. pause() ⏸️
Basically, useState tells React:
“Hey, the UI changed.”
useRef says:
“Relax. I’ll handle this.” 😌
#buildinpublic #react
2
47
If you're a tech builder/designer/thinker hyped about something, drop it below. Let's swap ideas and make it visible.
#TechCommunity #BuildInPublic
That little 🟢 “Online” badge in your chat app?
Yeah… it’s basically a distributed systems problem pretending to be a UI feature. 💀
Been learning how presence systems actually work:
→ Heartbeats tell the Presence Service: “I’m still alive.”
→ Redis stores the user’s presence
→ TTL is kept slightly > heartbeat interval
→ Miss heartbeats → TTL expires → offline
And last_active_at isn’t “last message sent.”
It’s the last successful interaction before the user vanished.
Crazy how much engineering goes into making a green dot look effortless. 👀
Now I’m wondering: how do systems like WhatsApp/Discord handle this at massive scale?
1
1
55
useContext() ⚛️
Before Context, sharing something like theme across deeply nested components can turn into:
Parent → Child → Child → Child → finally… the component that actually needs it. 😭
That’s prop drilling.
So I built a small Light/Dark Theme app to understand useContext() practically.
The flow clicked for me in 4 steps:
1️⃣ Create a Context
→ ThemeContext.jsx
2️⃣ Wrap the components that need access
→ ThemeContext.Provider
3️⃣ Share the data through value
→ { theme, setTheme }
4️⃣ Consume the Context
→ useContext(ThemeContext)
In my implementation, the App component owns the theme state and passes it through the Provider.
Then the consumer component can access theme and setTheme directly, toggle the theme, and the UI reflects the change through CSS.
The interesting part?
useContext() doesn't magically manage state.
It mainly gives components a way to access shared data without manually passing props through every layer.
#ReactJS #React #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic
2
33
Back with useEffect ⚛️
Previously, I built a simple cart using useState() with manually hardcoded products. My product list was just sitting there peacefully.
This time, I removed the fake product data and introduced an API into the equation.
→ Removed hardcoded products
→ Used JS fetch() to get products from an API
→ Handled the loading state
→ Used useEffect() to trigger the fetch after the component renders
→ Stored the response using useState()
→ Rendered the products dynamically
→ Kept the cart functionality from my previous build
useEffect → fetch() → API → setProducts() → re-render
Basically, I went from:
“Here are some products I made up.”
to:
“React, go get me some products.” 🫡
Slowly moving from making components to understanding how they actually interact with the outside world.
1
1
61
A little deeper into useEffect() ⚛️
I used to think:
“useEffect = run some code after render.”
Now it makes much more sense.
The real idea is side effects + synchronization.
The interesting part is the lifecycle:
→ Setup: perform the side effect
→ Cleanup: undo/stop the previous effect
→ Dependencies: decide when the effect should run again
For example, if I'm fetching data for userId = 1 and then switch to userId = 2, I don't want the old effect hanging around while the new one starts.
Cleanup lets us undo the previous effect before starting the next one , or clean it up when the component unmounts.
And the dependency array answers when:
[] → run after the initial render
[userId] → run when userId changes
No dependency array → run after every render
So useEffect isn't really about “doing something after rendering.”
It's about synchronizing your component with something outside React , and knowing when to start, restart, and clean it up.
#ReactJS #React #JavaScript #WebDevelopment #100DaysOfCode
1
1
51
Day 8 → Deep diving into useState.⚛️
So today I built a small product/cart flow around useState.
I created a reusable ProductCard component that receives product information through props and triggers an Add to Cart action.
The interesting part was the state flow:
User action → state update → React re-render → updated UI
I also logged the updated state to the console whenever the cart quantity changed, which helped me observe the state transition rather than treating useState as just another piece of syntax.
The takeaway:
State is information that changes over time and influences what the UI should display.
That sounds simple, but it’s one of the fundamental ideas behind building interactive applications with React.
And seriously… who orders 2 PS5s and 3 Dysons? 💀
#React #ReactJS #JavaScript #WebDevelopment #100DaysOfCode
35
Day 7 of learning React 🚀
Today I went deeper into 3 React Hooks:
useReducer → complex state management
useMemo → memoizing expensive calculations
useCallback → memoizing function references
But useReducer was the one that really made me think about how state management works.
The mental model:
Current State → what the application has right now.
Action → what we want to happen.
dispatch() → sends that action to the reducer.
Reducer function → decides how the state should change based on the current state + action.
So basically:
dispatch(action)
↓
reducer(currentState, action)
↓
new state
↓
UI updates
For example:
{ cart: [] }
ADD_ITEM (action) → reducer → { cart: [item] }
It makes complex state transitions much more predictable.
And one thing I'm realizing:
Knowing the basics isn't enough.
I don't want to just know what these hooks do.
I want to understand when they actually solve a real problem, when they don't, and what trade-offs they bring.
So next, I'll be diving deeper into each of these hooks and implementing them in real-life product use cases.
Because:
Learning the API is step 1.
Knowing when to use it is the actual skill.🧠⚙️
#ReactJS #React #JavaScript #FrontendDevelopment #WebDevelopment #100DaysOfCode
1
43
Day 6 of learning React. 🧠
Today I finally stopped thinking of Hooks as “some functions React gives you” and started seeing what they actually solve.
useState → remember things.
useEffect → react to things.
useRef → remember things without triggering a render.
useContext → share things without passing them through every component.
Different hooks, different problems.
But the bigger realization?
React isn’t just about rendering UI.
It’s about managing what your UI knows, remembers, reacts to, and shares.
Slowly starting to understand the machinery behind the JSX. ⚙️
Day 6/∞
#React #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic
1
69
Day 4 of learning React. ⚛️
Today was less about writing UI and more about understanding how a good UI is structured.
CSS Modules → keeping styles scoped to where they belong, while still having the flexibility to opt into global styles when needed.
React Router → managing different views in a Single Page Application without turning navigation into a full-page reload simulator.
useTransition → keeping the interface responsive by letting React prioritize urgent updates over less important ones.
Different concepts, but the same idea kept showing up:
A good UI isn’t just about what happens.
It’s about what happens, where, and when.
Slowly starting to appreciate the engineering behind the “it just feels smooth” part of an app.
#ReactJS #100DaysOfCode #WebDevelopment
1
215
Day 4 of learning React. 🧠
Today I learned that sometimes the best way to render something… is to not render it where you think you should.
React Portals let components escape the usual DOM hierarchy when they need to —modals, popups, overlays, etc.
Then came lazy() + Suspense.
Because apparently loading everything immediately is too mainstream.
Instead, React can load components only when they’re actually needed, while Suspense shows fallback content in the meantime.
Basically:
Load less → wait smarter → keep the UI alive.
React is slowly teaching me that a good UI isn’t just about what you show.
It’s also about what you show while the user is waiting, without making them feel like they’re waiting.
#ReactJS #WebDevelopment #100DaysOfCode #LearningInPublic
1
52
Day 3 of learning React. 🚀
Today’s realization:
Rendering a list isn't really about writing more JSX , it’s about transforming data into UI.
And forms made the same idea feel even more interesting:
With controlled inputs, React doesn’t just display the data.
It keeps track of it too.
Stumbled into useState ahead of schedule today.. 🧩
useState basically gives React its “memory”, the ability to remember values between renders and actually behave like a dynamic system instead of a static renderer.
React has a talent for introducing tomorrow’s problems today.
#ReactJS #100DaysOfCode #WebDevelopment
1
56
Day 2 of learning React:
• Events → camelCase, because apparently onclick was too emotionally attached to HTML😆
• props.children → the secret sauce behind wrapping different content inside the same component.
• Components can communicate without everything becoming a tangled mess.
React is basically teaching me that even components have boundaries.
#ReactJS #100DaysOfCode #WebDevelopment
1
53
Day 1 of learning React.
New beginnings on Twitter, new beginnings in React.
Today React taught me two surprisingly useful life lessons:
• Props are read-only.
If a child tries to change a property received from its parent, React throws an error.
React really sneaked a life lesson into the documentation. 😂
• Components are reusable.
Why build the same thing 10 times when you can build it once and reuse it?
React basically said:
Don’t work harder. Think smarter.
Maybe I’m learning React.
Maybe React is fixing my life. 💀
Day 1/∞
#ReactJS #100DaysOfCode #BuildInPublic #WebDevelopment
1
72









