The main reason

Creating a virtual DOM with JAVASCRIPT can be tedious, especially when creating nested virtual DOM. The advent of JSX in React allows us to write virtual DOM as if it were HTML.

Refer to the video

www.bilibili.com/video/BV1wy…