Flavio Copes

Articles & Tutorials

The easy-peasy React state management library (flaviocopes.com)
Mar 05, 2021
Every application needs to manage state. In React, we can go a long way using hooks, and in particular useState(), and passing props around. When things get more complicated than that, I like to immediately jump to a state management library. One of my favorites lately is easy-peasy.
How to move around blocks of code with React and Tailwind (flaviocopes.com)
Oct 27, 2020
While working on a Next.js website I had the need to move a React component to a whole different place in my markup, depending on the size of the screen.
How to get cookies server-side in a Next.js app (flaviocopes.com)
Dec 06, 2019
Accessing cookies while server-side rendering in Next.js can be harder than you think. Here's how I solved it.
How to render HTML in React (flaviocopes.com)
Dec 04, 2019
Find out how to render an HTML string in the DOM without escaping, using React.
How to debug a React application (flaviocopes.com)
Nov 30, 2019
Some tools you can use to debug your React app when you run into problems.
How to use Next.js API Routes (flaviocopes.com)
Nov 29, 2019
Learn this powerful technique provided by Next.js to create an API endpoint within a Next.js app.
How to use the Next.js Router (flaviocopes.com)
Nov 28, 2019
Learn how to use the `next/router` package to control routes in Next.js
The Next.js App Bundles (flaviocopes.com)
Nov 27, 2019
How Next.js separates your app code into different bundles, and what do they contain.
The icons added by Next.js to your app (flaviocopes.com)
Nov 26, 2019
Learn what the icons generated by Next.js in development mode mean.
Adding a wrapper component to your Next.js app (flaviocopes.com)
Nov 25, 2019
How to use a wrapper component and add a common sidebar or header to it.
Lazy loading modules in Next.js (flaviocopes.com)
Nov 24, 2019
How to lazy load modules in your Next.js app.
How to analyze the Next.js app bundles (flaviocopes.com)
Nov 23, 2019
Learn more about what's in your Next.js app bundles.
Deploying a Next.js app in production (flaviocopes.com)
Nov 22, 2019
How to generate the production version of your Next.js app.
Deploying a Next.js application on Now (flaviocopes.com)
Nov 20, 2019
How to use Now to easily and seamlessly deploy your Next.js app.
Feed data to a Next.js component using getInitialProps (flaviocopes.com)
Nov 13, 2019
How to feed data to a Next.js component using getInitialProps
Dynamic content in Next.js with the router (flaviocopes.com)
Nov 12, 2019
How to setup dynamic content in a Next.js site
How to use the React Developer Tools (flaviocopes.com)
Nov 10, 2019
Learn this very useful tool we absolutely need to install when building a React application.
The Reach Router Tutorial (flaviocopes.com)
Jul 27, 2019
A quickstart to using Reach Router in your React app.
How to use the useReducer React hook (flaviocopes.com)
Jul 23, 2019
Find out what the useReducer React hook is useful for, and how to work with it!
How to use the useMemo React hook (flaviocopes.com)
Jul 20, 2019
Find out what the useMemo React hook is useful for, and how to work with it!
How to use the useEffect React hook (flaviocopes.com)
Jul 19, 2019
Find out what the useEffect React hook is useful for, and how to work with it!
How to use the useCallback React hook (flaviocopes.com)
Jul 18, 2019
Find out what the useCallback React hook is useful for, and how to work with it!
How to connect your React app to a backend on the same origin (flaviocopes.com)
Jul 18, 2019
How to serve a React and a server-side backend app from the same origin, without having to use CORS on the server and worrying about ports.
    How to use the useState React hook (flaviocopes.com)
    Jul 17, 2019
    Find out what the useState React hook is useful for, and how to work with it!
    Testing React components (flaviocopes.com)
    Jan 05, 2019
    Test your first React component using Jest and `react-testing-library`
    React Render Props (flaviocopes.com)
    Jan 01, 2019
    Learn how Render Props can help you build a React application
    Server Side Rendering with React (flaviocopes.com)
    Dec 23, 2018
    What is Server Side Rendering? How to do it with React?
    Code Splitting in React (flaviocopes.com)
    Dec 22, 2018
    What is Code Splitting and how to introduce it in a React app
    Introduction to create-react-app (flaviocopes.com)
    Dec 19, 2018
    create-react-app is the easiest way to start up a React application
    Introduction to Gatsby (flaviocopes.com)
    Nov 28, 2018
    Gatsby is a platform for building apps and websites using React
    How to loop inside React JSX (flaviocopes.com)
    Nov 06, 2018
    How to loop in a React component JSX
    React PropTypes (flaviocopes.com)
    Nov 02, 2018
    How to use PropTypes to set the required type of a prop
    The React Context API (flaviocopes.com)
    Nov 01, 2018
    The Context API is a neat way to pass state across the app without having to use props
    The React Fragment (flaviocopes.com)
    Oct 31, 2018
    How to use React.Fragment to create invisible HTML tags
    React Props (flaviocopes.com)
    Oct 30, 2018
    How to use props to pass data around your React components
    Discover Next.js and write server-side React apps the easy way (freecodecamp.org)
    Apr 04, 2018
    Working on a modern JavaScript application powered by React is awesome until you realize that there are a couple problems related to rendering all the content on the client-side
    Introduction to React Router (flaviocopes.com)
    Mar 28, 2018
    React Router 4 is the perfect tool to link together the URL and your React app. React Router is the de-facto React routing library, and it's one of the most popular projects built on top of React.
    Theming styled-components (alligator.io)
    Mar 09, 2018
    This tutorial explains how to create themes to handle reusable styles with styled-components in React.
    Styled Components (flaviocopes.com)
    Feb 08, 2018
    Styled Components are one of the new ways to use CSS in modern JavaScript. It is the meant to be a successor of CSS Modules, a way to write CSS that's scoped to a single component, and not leak to any other element in the page
    The Beginner’s Guide to React (medium.freecodecamp.org)
    Jan 29, 2018
    React is a JavaScript library that aims to simplify the development of visual interfaces.
    React with Electron guide: a practical tutorial (flaviocopes.com)
    Aug 25, 2017
    How to create an Electron Node.js desktop application using `create-react-app`
    How to pass props to a child component via React Router (flaviocopes.com)
    Aug 20, 2017
    This short tutorial explains how to pass props to a child component via React Router
    Visual Studio Code setup for React development (flaviocopes.com)
    Aug 19, 2017
    Simple steps to get a nice VSCode setup with linting hints and format on save

    Courses & Video Series

    The React Course (thereactcourse.com)
    Jan 29, 2019
    I will guide you from zero knowledge of React to become a skilled React developer.