Virtual DOM, JSX
**Why React uses JSX instead of native JS? ** Case 1: Create the following example with JS and JSX 123<div id="test"> <h1 id="title">Hello,React</h1></div
Derek Zhu
**Why React uses JSX instead of native JS? ** Case 1: Create the following example with JS and JSX 123<div id="test"> <h1 id="title">Hello,React</h1></div
React Family Bucket React core React- Router routing library PubSub message management library Redux centralized state management library Ant-Design UI component library React definition React: A
HTML CSS is not a programming language JavaScript is a programming language (browser programming language). Web pages written in HTML CSS do not have any functionality. All functions have to be don
_ Number separator The delimiter _ does not change the value of a numeric literal, but the logical grouping makes it easier to read the numbers at a glance. 12const inhabitantsOfMunich = 1_464_301
React.FC Description is not a regular function, but a functional component. There must be a return value. 123const TodoList: React.FC = () => { return <div></div>};
Generic Utility Types Generic Utility Types Generic utility types can be used to process and transform different types of data. These generic utility types are generic because all they do is take t
Type Casting Type conversion tells TS that a value is of a specific type without TS being able to detect it on its own. TS cannot detect the type in some cases. For example, in HTML, id is used to
intersection types “&” intersection types allow us to combine other types. Use & to combine types. The combined type contains all properties and methods of those combined types. 123456789t