• Post author:
  • Post category:React JS
  • Post comments:27 Comments
  • Post last modified:April 14, 2020

React JS – “Reactjs” is a JavaScript library to develop and maintain by Facebook. Basically “Reactjs” is built for complex UI (User Interface) design. If you want to create beautiful UI for your application then you need to install React Js. It’s a component-based UI development technique that really help you to build a complex UI  for modern application. 

Configure React Js First Time
Install React JS and Create Beautiful UI

How work “React.js”

This library works in the client site and does not manipulate the browser’s DOM directly, first, it creates virtual DOM in memory and make necessary manipulation then change the browser’s DOM. React change only those elements which need to change rather than all elements in the browser.

React divide a complex UI into multiple components to simplify designing technique and reuse of code. For example if you need to design a page containing header footer and main body then you can simply divide the page into three separate components like header, footer and main body and you can also reuse the header and footer component to design other pages.

Basic Requirement before start “React”

If you want to learn how to develop a modern application with “Reactjs” then you should need to know the following 3 things.

  1. Knowledge about HTML and CSS.
  2. Little familiarity with JavaScript.
  3. Concepts about programming language, like function, class, object, array, etc.

Why you should start learning “React”

React.js development technique is very user friendly and easy to use every state of your application. It’s declarative so react is perfectly update states of your application’s UI and make your code more predictable and easier to resolve errors.

5 Reasons for start React.js development.

  1. Component bases architecture which easy to develop the user interface of an application
  2. Learn once and write anywhere – If you understand the concept of the React.js development technique then no need to learn mobile app development separately, you can able to build Android and iOS app beside web applications.
  3. Reusable components really help to develop and maintain a big application.
  4. The React community is amazing. The community helps to maintain and grow react.js library, everyone can contribute their own components.
  5. Now most of the repudiated organizations start using react.js, so it generates huge demand. If you want to be a front-end developer then definitely you should start React.js development.

How to Install and configure React js

Simple you can include react.js libraries in your project and start writing component base react code, but if you want to develop a big project then it’s recommended that setup react environment. And a good code editor (Visual Studio Code is a very good editor). It helps you to keep your project simple and easy to maintain.

React CDN Link

Install React JS Step by step

Step 1: Install node.js – Node.js is not required for Reactjs if you use React CDN Link library directly on the web page, but to beautify your application and manage easily we need to install some packages when needed. So you need to use Node Package Manager (NPM), That’s why we always recommend to install node.js, 

Download node.js

Read More

Install Visual Studio Code Extentions for React Native

Install React JS With Visual Studio Code

If you want to develop big application and also manage it. Then install and configure React Js with Visual Studio Code . for more click the above link.


Step 2: After installation of node.js we use command prompt to interact with node.js. Open the command prompt and follow the commands.

  1. Create project directory 
  2. Enter in the directory
  3. Create package.json
  4. Install React and other modules

To create package.json file just type following command and press enter

npm init

above command create following package.json file


{

"name": "react_app1",

"version": "1.0.0",

"description": "",

"main": "index.js",

"scripts": {

"test": "echo \"Error: no test specified\" && exit 1"

},

"author": "",

"license": "ISC"

}

Step 3: Now for install react module type the following commands and press enter

npm install –save react


This command will install react in your project and update package.json file

npm install –save react-dom

This command will install react-dom which needs to create and manipulate react virtual DOM.

After finished you need to enter the app directory and write the command to run react.

npm start

If you create react app with basic node modules with a single command then you can use the following command

npx create-react-app my-app


and to run application use npm start command.


Now you have successfully created the React app. If everything is well then you will see the following output.

React 1st Output
React 1st Output

This Post Has 27 Comments

  1. gralion torile

    Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say excellent blog!

  2. rummy card game rules

    Hi there, just became alert to your blog through Google, and found that it is truly informative. I am going to watch out for brussels. I will be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  3. vorbelutr ioperbir

    I visited a lot of website but I believe this one has something extra in it in it

  4. bitcoin slot reviews

    After study a few of the weblog posts in your web site now, and I truly like your method of blogging. I bookmarked it to my bookmark web site listing and will likely be checking back soon. Pls take a look at my site as nicely and let me know what you think.

  5. Curso Ar Condicionado Eletrônica Embarcada

    I just could not depart your site prior to suggesting that I actually enjoyed the standard info a person provide for your visitors? Is going to be back often in order to check up on new posts

  6. Nadine Kristianson

    Thanks for posting such an excellent article. It helped me a lot and I love the subject matter.

  7. Alec Hileman

    Thanks for posting. I really enjoyed reading it, especially because it addressed my issue. It helped me a lot and I hope it will help others too.

  8. Lindsey Tetter

    That’s what i mean when i say that content is the king!

  9. 358

    Incredible points. Outstanding arguments. Keepp uup the good effort.

  10. Jamey

    I’m really inspired aoong wih your writing talwnts as
    smartly as with the format on your blog. Is that this a paid topic or did you modify itt yojr self?
    Either wayy keep uup the ecellent high uality writing, it’s uncommon to lolk a great blog
    like this onne nowadays..

  11. eqc

    Someoine essentially lendd a hand to make critically articles I might
    state. That is thee fitst time I frrquented yourr website pagte andd too tis point?
    I surprised with tthe resdearch youu made to mae
    tnis particukar post extraordinary. Grest job!

  12. russian incest sex

    Really enjoyed this post.Really thank you! Keep writing. makaberzux

  13. mother and son taboo porn

    Really enjoyed this post.Really thank you! Keep writing. makaberzux

  14. zoritoler imol

    Hey, I think your site might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, great blog!

  15. zoritoler imol

    Youre so cool! I dont suppose Ive learn something like this before. So good to seek out anyone with some original ideas on this subject. realy thanks for starting this up. this web site is something that’s needed on the web, somebody with a bit originality. helpful job for bringing something new to the web!

  16. zoritoler imol

    I have recently started a website, the information you provide on this web site has helped me greatly. Thanks for all of your time & work.

  17. zortilonrel

    As a Newbie, I am constantly searching online for articles that can benefit me. Thank you

  18. slot online

    Thanks-a-mundo for the article.Thanks Again. Fantastic.

  19. some seo

    Im obliged for the blog post.Thanks Again. Really Great.

  20. zortilonrel

    Would love to always get updated great weblog! .

  21. Observer

    Great, thanks for sharing this blog post.Thanks Again. Fantastic.

  22. renault clio key fob

    Some really great info, Gladiola I detected this. I’m not spaming. I’m just saying your website is AWSOME! Thank you so much! Please vist also my website.

  23. chwilówki

    I reckon something truly special in this website.

  24. emergency car locksmith

    I am incessantly thought about this, thanks for posting.

  25. pożyczka pozabankowa

    I got what you intend,bookmarked, very decent website.

  26. Dipankar

    Thanks

  27. anjali

    Learned a lot from your post and it is really good. Share more tech updates regularly.

Leave a Reply