Member-only story
A Super Minimalist React App With 2 Routes
I’ve worked with stuff like VueJS, NuxtJS and Angular, but not React, which I am still learning as a beginner. This series of articles aims to document my React-learning journey in a coherent step-by-step manner, and aims to be the documentation that I wished I had when I was still figuring out how stuff works in React.
Some Prerequisites
- nodejs and npm need to be installed
- Installing react
npm i react
For those that didn’t know, i
here is short for install
, so we are basically telling npm to install react
for us.
Creating A New React App
At first, I followed the official documentation from this link:
The command I used to create my React application (from the docs above):
npx create-react-app test1
This worked for a couple of React apps until I accidentally did something to my nodejs/npm installation. This npx
command kept throwing errors to me…