ReactBeginner#fundamentals

What is React and why use it?

A JavaScript library for building UIs from small composable components. It keeps a virtual DOM, diffs it after state changes and patches only what actually changed, so you describe the UI declaratively instead of manipulating the DOM by hand.

Example
function Welcome({ name }) {
  return <h1>Hello {name}</h1>;
}
<Welcome name="Anu" />

Related Questions

1
ReactBeginner#jsx

What is JSX?

Open
2
ReactBeginner#props#state

Difference between props and state?

Open
3
ReactIntermediate#forms

What are controlled and uncontrolled components?

Open