Posts

Showing posts with the label dom

React simple discussion

  Introduction: React is a  user interfaces JavaScript library.  it is a “declarative, efficient, and flexible JavaScript library for building user interfaces”, as defined by its creators. It's Supports server-side rendering. Follows Unidirectional data flow or data binding. Uses reusable/composable UI components to develop the view. So ReactJS has taken the web development world by storm. Now I can describe about JSX, Virtual DOM etc.  About JSX: JSX (JavaScript XML) is a XML-like syntax extension to ECMAScript. That is allows to write HTML elements in JavaScript and place them in the DOM without any createElement()  and/or appendChild() methods.So we can easily write HTML in React. it calls the React.createElement() function. So we need to have to React in scope for JavaScript to know what to do with the compiled code.  Capitalized types indicate that the JSX tag is referring to a React component. These tags get compiled into a direct reference to the na...