Skip to content

Instantly share code, notes, and snippets.

@gupta-pratik
gupta-pratik / react.js
Last active December 18, 2021 10:51
React.js tutorial and points to remember about react.js
It’s important to remember React is “just the V in MVC” or “just the view layer”. React isn’t trying to be a full fledged framework.
a)React.js Fundamentals:
1.Components are the building blocks of React. You can think of a component as a collection of HTML, CSS, JS, and some internal data specific to that component.
2.JSX — Allows us to write HTML like syntax which gets transformed to lightweight JavaScript objects.
3.Virtual DOM — A JavaScript representation of the actual DOM.
4.React.createClass — The way in which you create a new component.
5.render (method) — What we would like our HTML Template to look like.
6.ReactDOM.render — Renders a React component to a DOM node.