⊗jsrtPmBsCR 6 of 112 menu

Result of the component's work

The result div will contain what the component's return function returns. In the following example, it will be a div with text:

function App() { return <div> text </div>; }

Note that we write div without quotes - we just write the tag in JavaScript code! This is the main feature of React. In fact, in React we write not in JavaScript, but in JSX, which we will study in the following lessons.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline