React Digest #366: Reading Source Code: React
#366 — July 25, 2022 | View in browser |
React Digest
Spread the word, build the community, share the knowledge with your friends.
sponsor
Dynamic Organization Routing with React
If you’re building a B2B/multi-tenant application, you’ll want to have some dynamic way to know which organization your users are accessing at any point in time. With PropelAuth’s hosted pages, your users can create organizations in your app, enabling you to easily check their roles, memberships, and more in your React app.
this week's favorite
It’s daunting to even think about reading the code of a framework I’ve been using for years. I’ve always seen React as a black box that takes JSX and puts things on the screen without thinking too much about it.
Avoid anonymous components with `displayName`
There are two exceptions where the devtools are unable to infer a name of a component. Contexts and 'wrapped' or 'higher-order' components, i.e. components wrapped in memo and forwardRef. The devtools need some help to be able to display a name for those, this is where the displayName property comes in.
Architecting React Apps Like it's 2030
There is one problem that every React Developer falls into during his journey. This is how to structure a good app architecture.
7 Tips for Clean React TypeScript Code you Must Know 🧹✨
Clean code isn't code that just works. It refers to neatly organized code which is easy to read, simple to understand and a piece of cake to maintain.
How to Use React Context With Hooks for Global State Management
Why Would You Want To Use the React’s Context API for Global State Management? The answer is simply that although you can pass a state from the main parent component all the way down to all child components via props, it becomes very cumbersome after 2 levels => deep prop drilling is a bad practice leading to code that is hard to read and maintain. And that’s when you should have a look at a state management library (e.g., Redux) or the built-in React Context.
how did you like this issue?
1 = didn't like it at all and 5 = loved it and shared it with everyone I know
newsletters
Older messages
React Digest #365: Applying SOLID principles in React
Sunday, July 17, 2022
And more news, tutorials and articles about React in this week's issue. #365 — July 18, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your friends
React Digest #364: How to animate multiplayer cursors
Sunday, July 10, 2022
And more news, tutorials and articles about React in this week's issue. #364 — July 11, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your friends
React Digest #363: My Wonderful HTML Email Workflow, using MJML and MDX for responsive emails
Sunday, July 3, 2022
And more news, tutorials and articles about React in this week's issue. #363 — July 04, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your friends
React Digest #362: How We Built Hydrogen: A React Framework for Building Custom Storefronts
Sunday, June 26, 2022
And more news, tutorials and articles about React in this week's issue. #362 — June 27, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your friends
React Digest #361: Notes on maintaining an internal React component library
Sunday, June 19, 2022
And more news, tutorials and articles about React in this week's issue. #361 — June 20, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your friends
You Might Also Like
Is there more to your iPhone?
Monday, November 25, 2024
Have you ever wondered if there's more to your iPhone than meets the eye? Maybe you've been using it for years, but certain powerful features and settings remain hidden. That's why we'
🎉 Black Friday Early Access: 50% OFF
Monday, November 25, 2024
Black Friday discount is now live! Do you want to master Clean Architecture? Only this week, access the 50% Black Friday discount. Here's what's inside: 7+ hours of lessons .NET Aspire coming
Open Pull Request #59
Monday, November 25, 2024
LightRAG, anything-llm, llm, transformers.js and an Intro to monads for software devs ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Last chance to register: SecOps made smarter
Monday, November 25, 2024
Don't miss this opportunity to learn how gen AI can transform your security workflowsㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ elastic | Search. Observe. Protect
SRE Weekly Issue #452
Monday, November 25, 2024
View on sreweekly.com A message from our sponsor, FireHydrant: Practice Makes Prepared: Why Every Minor System Hiccup Is Your Team's Secret Training Ground. https://firehydrant.com/blog/the-hidden-
Corporate Casserole 🥘
Monday, November 25, 2024
How marketing and lobbying inspired Thanksgiving traditions. Here's a version for your browser. Hunting for the end of the long tail • November 24, 2024 Hey all, Ernie here with a classic
WP Weekly 221 - Bluesky - WP Assets on CDN, Limit Font Subsets, ACF Pro Now
Monday, November 25, 2024
Read on Website WP Weekly 221 / Bluesky Have you joined Bluesky, like many other WordPress users, a new place for an online social presence? Also in this issue: CrawlWP, Asset Management Framework,
🤳🏻 We Need More High-End Small Phones — Linux Terminal Setup Tips
Sunday, November 24, 2024
Also: Why I Switched From Google Maps to Apple Maps, and More! How-To Geek Logo November 24, 2024 Did You Know Medieval moats didn't just protect castles from invaders approaching over land, but
JSK Daily for Nov 24, 2024
Sunday, November 24, 2024
JSK Daily for Nov 24, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted
OpenAI's turbulent early years - Sync #494
Sunday, November 24, 2024
Plus: Anthropic and xAI raise billions of dollars; can a fluffy robot replace a living pet; Chinese reasoning model DeepSeek R1; robot-dog runs full marathon; a $12000 surgery to change eye colour ͏ ͏