React Digest - Building a Dark Mode Theme Toggle
#281 — December 07, 2020 | View in browser |
React Digest
Spread the word, build the community, share the knowledge – invite your friends.
sponsor
Render as You Fetch with React Suspense
React 16.6 added a <Suspense> component that lets developers build better responsive apps with smoother state/page transitions. Check out Peter’s article for an example how to use Suspense for data fetching.
this week's favorite
Building a Dark Mode Theme Toggle
Today we will be building a toggle component that animates between a light and dark theme. I was inspired by this Dribbble shot, and it was a fun experiment to try and recreate.
Dangers of using Objects in useState & useEffect ReactJS Hooks
In this blog post, Tiago explores the issues with using objects in React hooks. Since the hooks do a strict equality comparison to determine a re-render and don't check the properties of an object used as state, it will not trigger a re-render, causing some troublesome bugs!
Building a real-time voting app using ReactJS and Ably
Realtime web technologies have been around for over 10 years, but it's only relatively recently that we've started seeing them used in our day-to-day applications. This is not only because the realtime technology is better understood, has become more mature, and standardized, but also, because the users have been exposed to the amazing capabilities of the realtime web and as a result, they are now demanding those type of experiences in the apps they use.
My Awesome React/Redux Structure
Learn how to architect a React/Redux application in a classy way. I wanted to show how I structure React/Redux applications. I will be using JavaScript ES2015 Classes for many of my files. I think classes help with structuring your code.
Discovering Mock Service Worker
Recently, I found myself digging around for the best approach to mocking HTTP requests in a JS test suite. This post isn’t a tutorial on how to use Mock Service Worker. Rather, it’s a collection of short summaries of what worked well (and didn’t!) for me.
projects
An advent React calendar for this year.
newsletters
![](https://reactdigest.net/analytics/open.gif?digest_issue=281&digest_type=react&subscriber_id=d989474f-5154-4210-8b02-630903ac8d62)
Older messages
Fetching Data in React with useEffect
Friday, December 4, 2020
And more news, tutorials and articles about React in this week's issue. #280 — November 30, 2020 View in browser React Digest Spread the word, build the community, share the knowledge – invite your
React Digest #279
Monday, November 23, 2020
5 top links — save time, be smarter. Stay on top of technology with React Digest. react digest #279 Spread the word, build the community, share the knowledge – invite your friends. sponsor All You Need
React Digest #278
Sunday, November 15, 2020
5 top links — save time, be smarter. Stay on top of technology with React Digest. react digest #278 Spread the word, build the community, share the knowledge – invite your friends. sponsor 8 Key
React Digest #277
Sunday, November 8, 2020
5 top links — save time, be smarter. Stay on top of technology with React Digest. react digest #277 Spread the word, build the community, share the knowledge – invite your friends. sponsor Using Your
React Digest #276
Sunday, November 1, 2020
5 top links — save time, be smarter. Stay on top of technology with React Digest. react digest #276 Spread the word, build the community, share the knowledge – invite your friends. sponsor How to Build
You Might Also Like
Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator
Friday, February 14, 2025
What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Defining Your Paranoia Level: Navigating Change Without the Overkill
Friday, February 14, 2025
We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy
5 ways AI can help with taxes 🪄
Friday, February 14, 2025
Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help
Recurring Automations + Secret Updates
Friday, February 14, 2025
Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
The First Provable AI-Proof Game: Introducing Butterfly Wings 4
Friday, February 14, 2025
Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%
GCP Newsletter #437
Friday, February 14, 2025
Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers
Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰
Friday, February 14, 2025
Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from
The Great Social Media Diaspora & Tapestry is here
Friday, February 14, 2025
Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great
Daily Coding Problem: Problem #1689 [Medium]
Friday, February 14, 2025
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,
📧 Stop Conflating CQRS and MediatR
Friday, February 14, 2025
Stop Conflating CQRS and MediatR Read on: my website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your