React.js
React is a JavaScript library for building user interfaces. This guide targets React v15 to v16.
Mastering Modern React Hooks: Comprehensive Guide to useEffect, useMemo, and useCallback
Deep dive into React rendering lifecycle, memoization strategies, and preventing redundant component re-renders.
Mastering Modern React Hooks: Comprehensive Guide to useEffect, useMemo, and useCallback
Deep dive into React rendering lifecycle, memoization strategies, and preventing redundant component re-renders.
Setting default state
Set the default state in the constructor(). And without constructor using Babel with proposal-class-fields. See: Setting the default state
Nesting
As of React v16.2.0, fragments can be used to return multiple children without adding extra wrapping nodes to the DOM.
States
Use states (this.state) to manage dynamic data. With Babel you can use proposal-class-fields and get rid of constructor See: States