Today is officially the first day in my attempt to document my process of learning to program and I’m starting with my React.js journey.
What is React?
What are the Unique features of React?
React is particularly useful in creating Single Page Applications (SPA) and works on the concept of re-usable class or function based components. It works to create interactive user interfaces that re-render automatically whenever a component is changed without having to reload the web page. This feature helps to promote a better user experience and reduces run time when ever the user loads up the page in a browser.
How to create a new React App
Next, find the directory you want to create a new React app in by using the command line “cd ..” to go up a directory. Then create a new React app by typing the command “npx create-react-app name-of-app” and wait a few minutes for the meta data and extension for your new app to be downloaded. Once you see the prompt “happy hacking” , open up the app by using the command line “cd name-of-app” followed by “npm-start” and grant permission for the terminal to open up your browser.
Congratulations! You have created your first React Application 😊😊