Let's begin by adding Bootstrap 4 as a dependency to our project, so we won't have to think about design and can focus on the functionality of our forms.
Bootstrap is a popular open source toolkit that gives us some predefined classes and styles so that we can make our app look nice without having to worry much about styles.
To get Bootstrap installed and set up for our project, follow these steps:
- Open up the Terminal to your project's folder, and install the dependency with the following command:
> npm install bootstrap
- Awesome! This adds the package to our node_modules folder and package.json. Now, go ahead and import the necessary styles into src/main.js. Use the following command to do so:
import 'bootstrap/dist/css/bootstrap.min.css';
We're not going to be using any of Bootstrap's scripts, so...