react - reactjs tutorial - Introduction to ReactJS - react js - reactjs



What is Reactjs?

  • React is a UI library developed at Facebook to facilitate the creation of interactive, stateful & reusable UI components.
  • It is used at Facebook in production, and Instagram.com is written entirely in React.
  • One of it's unique selling points is that not only does it perform on the client side, but it can also be rendered server side, and they can work together inter-operably.
  • learn reactjs - reactjs tutorial - reactjs mvvm model -  reactjs programs

    learn ReactJs - ReactJs tutorial - ReactJs events - ReactJs is V in MVC - ReactJs examples - ReactJs programs

  • It also uses a concept called the Virtual DOM that selectively renders subtrees of nodes based upon state changes.
  • It does the least amount of DOM manipulation possible in order to keep your components up to date.
learn reactjs - reactjs tutorial - traditional vs react web app -  reactjs programs

Who is using Reactjs? :

  • Facebook
  • Instagram
  • Netflix
  • Paypal…etc
  • AirBnB
  • BBC
  • Dropbox
  • Flipboard
  • Reactjs - History :

  • In 2010, Facebook released an extension for PHP called XHP.
  • XHP help to decrease XSS attack and make front-end much both readable and understand.
  • learn reactjs - reactjs tutorial - reactjs history -  reactjs programs
  • There was a distinct problem with XHP: dynamic web applications require many roundtrips to the server.
  • XHP did not solve this problem.
  • A Facebook engineer negotiated with his manager to take XHP into the browser using JavaScript and was granted six months to try it. Which provides a path the creation of new technology called ReactJS
  • Purpose of Reactjs :

  • Creating user interface(V in MVC model).
  • Building large applications with data that changes over time.
  • V(view) of MVC - Solution of View in MVC
  • Virtual DOM - Reactjs use the concept of virtual DOM which helps in the performance
  • learn react js - react js tutorial - react js dom model -  react js programs

    Only specific changes will get reflected and its postback to the server and this provides a huge performance improvement in a client server model


    learn react js - react js tutorial - react js dom model -  react js programs
  • Unidirectional Data Flow - Compare to the 2 way data binding. Reactjs use the concept of Unidirectional data flow which improve the over all performance.
  • UI Components - Reusable and interactive components
  • SEO Friendly - Components are client side as well as server side render hence they are SEO friendly and no 3rd party plugin required
  • Coding is simpler because of JSX
  • Reactjs own debugger
  • React Native is going to be next big thing
  • Big minds are backing Reactjs
  • learn reactjs - reactjs tutorial - reactjs code -  reactjs programs

    Reactjs JSX - JSX in reactjs :

  • JSXis a JavaScript syntax extension that looks similar to XML.
  • Concise and familiar syntax for defining tree structures with attributes.
  • Make large trees easier to read than function calls or object literals.
  • Can be used in both HTML tags and Components
  • HTML tags
    • var myDivElement= < div className="foo" > HTML tags < /div>;
    • ReactDOM.render(myDivElement, document.getElementById('example'));
  • Component
    • var MyComponent= React.createClass({/*...*/});
    • var myElement= <MyComponent/>;
    • ReactDOM.render(myElement, document.getElementById('example'));
  • Article tag : react , react native , react js tutorial , create react app , react tutorial , learn react

    Mongodb Express Angularjs Nodejs (MEAN stack) :

    learn reactjs - reactjs tutorial - mongodb-express-nodejs-angularjs -  reactjs programs
    Article tag : react , react native , react js tutorial , create react app , react tutorial , learn react

    Mongodb Express Reactjs Nodejs (MERN stack) :

    learn reactjs - reactjs tutorial - mongodb-express-nodejs-Reactjs -  reactjs programs

    Reactjs Components :

  • A JavaScript library for building user interfaces. Reactjs is created by the Facebook for the V of MVC by reusable and interactive UI components.
  • learn reactjs - reactjs tutorial - reactjs components -  reactjs programs
    Article tag : react , react native , react js tutorial , create react app , react tutorial , learn react

    Virtual DOM

    learn reactjs - reactjs tutorial - reactjs virtual dom -  reactjs programs

    learn reactjs - virtual dom -reactjs example

    • Reactjs uses the concept of the virtual DOM.
    • It selectively render the subtree of DOM elements into the rendering of the DOM on state change
    • Use different algorithm with the browser DOM tree to identify the changes
    • Instead of creating new object, Reactjs just identify what change is took place and once identify update that state.
    • This way it is creating a virtual DOM and improving the performance too.
    • Can be render on server and sync on Local

    reactjs Format :

    Sample code

    ReactDOM.render(
      <div>www.wikitechy.com!</div>,
      document.getElementById('container')
    );
    
    click below button to copy the code. By reactjs tutorial team
    Article tag : react , react native , react js tutorial , create react app , react tutorial , learn react

    Output

    www.wikitechy.com!
    

    Core Concept of Reactjs :

    learn reactjs - reactjs tutorial - reactjs core concepts -  reactjs programs
    Article tag : react , react native , react js tutorial , create react app , react tutorial , learn react

    Reactjs - Rendering Elements :

    learn react js - react js tutorial - react js - rendering elements -  react js programs

    Related Searches to React js Introduction