Ajay Yadav
Ajay Yadav

@ATechAjay

8 Tweets 2 reads Oct 14, 2022
Getting Started with React JS βš›οΈ
πŸ’‘React JS:
❍ React is a JavaScript library for building user interfaces or building a single-page application(SPA).
❍ It allows us to create 𝒓𝒆𝒖𝒔𝒂𝒃𝒍𝒆 UI components.
πŸ’‘Create React App:
❍ To learn and test React applications, we need to set up React environment on our computer.
❍ Node JS is required to create 𝒄𝒓𝒆𝒂𝒕𝒆-𝒓𝒆𝒂𝒄𝒕-𝒂𝒑𝒑(CRA), so we need to install Node JS first.
❍ After installing Node JS we need to run the following commands:
1. npx create-react-app <app-name>
2. cd app-name
3. npm start
BUT πŸ‘‡
❍ Still if are getting some ERROR(see the below image), So you should try to install 𝒄𝒓𝒆𝒂𝒕𝒆-𝒓𝒆𝒂𝒄𝒕-𝒂𝒑𝒑 globally.
❍ On my computer, I'm getting this module ERROR but once I globally installed 𝒄𝒓𝒆𝒂𝒕𝒆-𝒓𝒆𝒂𝒄𝒕-𝒂𝒑𝒑 then it's working.
❍ Although this is not recommended, I've not any idea about it so you can try it as well.
❍ Hit this command into your terminal: npm install -g create-react-app.
⬇️Then run these commands:
1. npx create-react-app <app-name>
2. cd app-name
3. npm start
πŸ’‘How does React work:
❍ Instead of manipulating the browser's DOM, React creates a virtual DOM in memory, Where it does all the necessary manipulating before making the changes in the browser.
❍ Reacts only change what needs to be changed.
That's all for now, we will meet in the next thread😍
πŸ”” Follow Me @ATechAjay
For:
🌐 Web Development
✨ JavaScript
βš›οΈ React JS
πŸ“ Writing Skill
πŸ”₯ Motivation
πŸ’Ή Growth
β›” But Not For Only Resources & Shitpost 😁
Thank you so much for staying to the end of this threadπŸ’š

Loading suggestions...