[React basic series] what is JSX and how to use JSX

React is a library developed, open-source and maintained by facebook, and the meaning of react is to use JavaScript to realize user interaction - a JavaScript library for building user interfaces. Therefore, in essence, React is a library, and its role is to use JavaScript to realize user interaction. Its core idea is to use JavaScript to ...

Posted by Copyright on Mon, 17 Jan 2022 22:29:55 +0100

Note: implement a mini react

preparationOf template files to be used Warehouse address1. JSXLet's look at the jsx syntax first. What did you do babel.jsYou can see that after babel translation, these jsx syntax finally calls react CreateElement, which requires three parameters: type, props and children. Its return value is the virtual DOM object. In other words, we can use ...

Posted by nariman on Mon, 03 Jan 2022 21:18:40 +0100