How to mock data in React with a fake API
A tutorial on using a JavaScript fake API with mock data to build a React frontend when a backend isn't available.
A tutorial on using a JavaScript fake API with mock data to build a React frontend when a backend isn't available.
An introductory tutorial explaining React Hooks, showcasing how to use state and side-effects in function components.
Learn how to implement a callback function after state updates with React's useState hook, using useEffect or a custom hook.
An article exploring Preact, a lightweight React alternative, and its progressive ecosystem for building web applications.
Explains why testing React component implementation details leads to unreliable tests and demonstrates better testing practices.
A developer explains their reasons for avoiding the React.FC type in TypeScript+React projects, citing issues with function typing and implicit children.
A guide to common React component patterns using TypeScript, focusing on function components, props, and type definitions.
Analysis of why Gatsby.js sites have fewer accessibility errors than average, exploring developer 'guide rails' and automated testing.
A guide explaining how to use React's useMemo Hook to optimize performance by memoizing expensive computations in function components.
A guide explaining React's useCallback Hook for optimizing function components, including examples and comparisons to useMemo and memo.
Essential JavaScript features like closures, template literals, and destructuring that are crucial for effective React development.
A critique of over-engineering state management in React, advocating for a simpler approach aligned with the component tree structure.
Learn how to use the react-error-boundary library to handle runtime errors gracefully in React applications.
A guide on how to choose an open source project to contribute to, emphasizing projects you use regularly.
Explains why using && for conditional rendering in JSX can cause bugs and recommends using ternary operators instead for clarity.
The author argues against using heavy JavaScript frameworks like Gatsby for blogs, advocating for simpler static site generators like Eleventy for better performance.
A technical guide on creating animated sparkle effects for text and images in React, including planning, animation, and accessibility.
Explains how to implement computed properties (derived state) in React using useState and sorting examples.
A guide on how to derive state from props in React function components, including code examples for initializing and updating state.
A tutorial on managing JavaScript arrays in React state, covering common operations like adding, updating, and removing items.