Using JSX to Write UI
Learn how JSX is used to write the user interface.
We'll cover the following...
We'll cover the following...
Instead of using the h function, we could write our UI using JSX, which is an XML-like syntax extension invented by Facebook that makes writing virtual DOM structures easier and more readable. Our vtreeElements function will look like this:
Doesn’t it look nicer? JSX looks more familiar to developers because it ...