#thedivisor#JSX looks like HTML, but behind the scenes it is changed into plain JavaScript objects. You can’t return two objects from a function unless you put them into an array. This is why you also can’t return two JSX tags without putting them into another tag or a Fragment.#thedivisor#JSX needs tags to be closed properly: self-closing tags like <img> must be changed to <img />, and wrapping tags like <li>oranges must be written as <li>oranges</li>.#thedivisor#This is what Hedy Lamarr’s image and list items look like when closed:#thedivisor#JSX is transformed into JavaScript, and attributes written in JSX become keys in JavaScript objects. In your components, you will often want to read those attributes into variables. But JavaScript has rules about variable names. For example, names can’t have dashes or be reserved words like class.#thedivisor#This is why, in React, many HTML and SVG attributes are written in camelCase. For example, instead of stroke-width, you use strokeWidth. Since class is a reserved word, in React you write className instead, named after the corresponding DOM property:#thedivisor#You can find all these attributes in the list of DOM component props. If you get one wrong, don’t worry—React will show a message with a possible fix in the browser console.#thedivisor#For historical reasons, aria- and data- attributes are written in HTML style with dashes.#thedivisor#Changing all these attributes in existing markup can be a lot of work! We suggest using a converter to change your existing HTML and SVG to JSX. Converters are very helpful in practice, but it’s still important to understand what is happening so that you can write JSX on your own easily.#thedivisor#Here is your final result:#thedivisor#Now you understand why JSX exists and how to use it in components: