React JS Day 4

How to use react in existing web application with offline library?

  1. Install Node JS
  2. Install Visual Studio Code

Process:

  1. Create a new folder for your project E:\react-netflix
  2. Open folder location in “Visual Studio Code”
  3. Open Terminal [command prompt] Ctrl + `
  4. Run the following command > npm init -y [ package.json ]
  5. Add File System a) Add a new file by name "README.md" b) Add folders - public it contains static resources. [html, images, docs, audio, video] - src it container dynamic resources [css, scss, less, js, ts, jsx, tsx..]c) Add startup page in public folder - index.html
  6. React JS requires following libraries to install in project a) React b) React-DOM c) Babel > npm install react --save > npm install react-dom --save > npm install @babel/standalone --save

Note: All library files are copied into a folder called “node_modules”.
The library files required for React will be in “UMD”, which is a module system
for Javascript.

    a) Common JS [CJS]
    b) UMD [Universal Module Distribution]
    c) AMD [Asynchronous Module Distribution]
    etc..
  1. To enable React in a page you have to link following script files a) react.development.js [umd] b) react-dom.development.js [umd] c) babel.js [@babel]
  2. To enable bootstrap in a project you have to install following libraries.
  3. >npm i bootstrap bootstrap-icons --save.

Share Article:

Considered an invitation do introduced sufficient understood instrument it. Of decisively friendship in as collecting at. No affixed be husband ye females brother garrets proceed. Least child who seven happy yet balls young. Discovery sweetness principle discourse shameless bed one excellent. Sentiments of surrounded friendship dispatched connection is he. Me or produce besides hastily up as pleased. 

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like:

Trust On Your Soul

we are on a mission to touch lives and ignite the flame of self-belief within each individual. Our dedication lies in creating a space where positivity thrives, and personal growth becomes a daily pursuit.

Follow On Instagram

Recent Posts

  • All Post
  • Beauty
  • Islamic
  • Lifestyle
  • Motivation
  • Photography
  • Technology
  • Travel
    •   Back
    • Ramadan

Transform Your Life

Trust on Your Soul's Inspirational Odyssey

Stay Inspired, Stay Connected!

Subscribe to Our Newsletter & Join Our Community

You have been successfully Subscribed! Ops! Something went wrong, please try again.
Edit Template

How to use react in existing web application with offline library?

  1. Install Node JS
  2. Install Visual Studio Code

Process:

  1. Create a new folder for your project E:\react-netflix
  2. Open folder location in “Visual Studio Code”
  3. Open Terminal [command prompt] Ctrl + `
  4. Run the following command > npm init -y [ package.json ]
  5. Add File System a) Add a new file by name "README.md" b) Add folders - public it contains static resources. [html, images, docs, audio, video] - src it container dynamic resources [css, scss, less, js, ts, jsx, tsx..]c) Add startup page in public folder - index.html
  6. React JS requires following libraries to install in project a) React b) React-DOM c) Babel > npm install react --save > npm install react-dom --save > npm install @babel/standalone --save

Note: All library files are copied into a folder called “node_modules”.
The library files required for React will be in “UMD”, which is a module system
for Javascript.

    a) Common JS [CJS]
    b) UMD [Universal Module Distribution]
    c) AMD [Asynchronous Module Distribution]
    etc..
  1. To enable React in a page you have to link following script files a) react.development.js [umd] b) react-dom.development.js [umd] c) babel.js [@babel]
  2. To enable bootstrap in a project you have to install following libraries.
  3. >npm i bootstrap bootstrap-icons --save.

Trending Posts

Hot News

About

we believe in the transformative power of words. Our mission is to inspire and empower individuals to reach new heights in their personal and professional lives. Through our YouTube channel and website.

Recent Post

  • All Post
  • Beauty
  • Islamic
  • Lifestyle
  • Motivation
  • Photography
  • Technology
  • Travel
    •   Back
    • Ramadan

© 2024 Created with Trust On Your Soul