• Feed
  • Discussions
useStatevsUsereducer

useStatevsUsereducer

#usestatevsusereducer
0 followers·1 articles

useStatevsUsereducer

#usestatevsusereducer·0 followers·1 articles
useStatevsUsereducer
Surya Prakash Singh
Surya Prakash Singh
suryathink.hashnode.dev·Mar 19, 2025
Mar 19, 2025

usereducer and useReducer vs useState

useReducer → alternative of useState hook for small app → use useState for larger apps → use useReducer along with contextApi import "./styles.css"; import { useReducer } from "react"; export default function App() { // state -> means current state...

Discuss·2 reads
useStatevsUsereducer

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Transparency and Access in the Next Generation of Public Services

Blessing Inyang·26 reads

How CreditLink is Redefining Trust and Credit in DeFi.

Patience Uyire·40 reads

The Web3 Inbox You Didn’t Know You Needed: A Deep Dive Into Dmail.

Patience Uyire·33 reads

Top commenters this week

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior
Mayank Arora
Mayank Arora
Emily
Emily
David Nguyen
David Nguyen
Sajid Ahmed
Sajid Ahmed
Legit or not
Legit or not