Posts

Showing posts with the label REACTJS

REACT JS NOTES

  REACT NOTES React is a Javascript library for building user interface. It is not a Framework. React knows only one thing that is to create an awesome UI. History of React 1: React was first designed by Jordan Walke who was part of the Facebook team. 2: It was first deployed for Facebook's news feed around 2011. 3: In 2013, React was open sourced at JS conference. Why React ? 1: Created and maintained by Facebook. 2: It has a huge community on github. 3: Component Based Architecture. ReactJS Advantages 1: React uses a declarative approach. 2: Resuable Code. 3: Component Based Approach  4: DOM updates are handled gracefully. 5: React is designed for speed, speed of implementing the application, simplicity, and scalability.  Component based approach A Component is one of the core building blocks of React. In other words, we can say that every application you will develop in React will be made up of pieces called components. Components make the task of building UIs much e...

MODULE 5 - 6 & 7 [ REACT JS NOTES ] BASICS FOR ALL WEB DEVELOPMENT

  Step 1 - Install a React Router A simple way to install the  react-router  is to run the following code snippet in the  command prompt  window. C:\Users\username\Desktop\reactApp>npm install react-router-dom Step 2 - Create Components In this step, we will create four components. The  App  component will be used as a tab menu. The other three components  (Home), (About)  and  (Contact)  are rendered once the route has changed. main.js import React from 'react' ; import ReactDOM from 'react-dom' ; import { Router , Route , Link , browserHistory , IndexRoute } from 'react-router'   class App extends React . Component {    render () {        return (           <div>              <ul>           ...