Installing Motion for React

Unlock this video and the rest of this course by joining Frontend.FYI PRO .

The very beginning: installing Motion for React.

These steps are only needed if you want to run any of the projects locally. During the whole course you will be able to use the playground, and Motion for React will be installed automatically for you.

Setting Up Your Environment

To get started, you’ll need a React project set up. If you haven’t already, create a new React app using Vite or your preferred method.

Installing Motion for React

Now, let’s get Motion into your project. You can do this using npm, yarn, or pnpm, depending on your preference.

Make sure to navigate to the folder where you installed your project, and run the following command.

# with npm
npm install motion
# with yarn
yarn add motion
# with pnpm
pnpm add motion

Unlock the full lesson with PRO

Want to read the full lesson? Join Frontend.FYI PRO.

PRO is a one time purchase of €249 that gives you lifetime access to this course, any courses released in the future, and so much more!