React: How I learned to create optimized contexts React contexts is a very cool feature, and extremely practical to use with the hooks API. You’ve surely met some, and probably recognize them right way.
React contexts is a very cool feature, and extremely practical to use with the hooks API. You’ve surely met some, and probably recognize them right way.
Today I’d like to share what I learned when creating my own React contexts: what I consider to be a good context *and *how to write one.
There’s another exploration I’d like to share later that won’t be in this post: how and when to split a context in 2 or more.
Le awesome dive
Let’s take the example of a
Theme context, providing a
mode: 'dark' or 'light', and a
compact boolean to indicate whether the UI should have reduced margins and paddings or not.
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
The best way to learn something is by doing. It works even better if it means working on something for fun. So, how about learning about React, React hooks and TypeScript by building your own meme generator? This tutorial will show you how to do it.
In this post, I will share my own point of view about React Hooks, and as the title of this post implies, I am not a big fan.
This tutorial is to build your own todo list app. About code. You will use React and React hooks, mostly `useState` hook.
React hooks tutorial for beginners, learn React hooks step by step: Introduction, useState Hook, useState with previous state, useState with object, useState with array, useEffect Hook, useEffect after render, Conditionally run effects, Run effects only once, useEffect with cleanup, useEffect with incorrect dependency, Fetching data with useEffect, useContext Hook, useReducer Hook, useReducer, Multiple useReducers, useReducer with useContext, Fetching data with useReducer, useState vs useReducer, useCallback Hook, useMemo Hook, useRef Hook