Styling in React - CSS Modules and Styled Components
Compare plain CSS, CSS Modules, and Styled Components to pick the right styling strategy.
Practical programming tutorials and guides.
Compare plain CSS, CSS Modules, and Styled Components to pick the right styling strategy.
Memoize expensive calculations and function references to avoid unnecessary work.
Use React.memo to skip re-rendering child components when their props haven't changed.
Build an Error Boundary component to gracefully handle UI crashes and show a fallback UI.
Reuse logic across components with the HOC pattern, by building a withLoading HOC.
Split a large bundle into smaller chunks to improve your app's initial load speed.
Use Redux Toolkit to set up predictable, centralized global state for an entire app.
Manage API data with caching, background refetching, and syncing using useQuery and useMutation.
Write unit tests for React components — rendering, user interaction, and assertions.