JSX (JavaScript XML) – format zapisu kodu HTML oraz XML wewnątrz języka JavaScript. Pierwotnie zaproponowany przez Facebooka i użyty w bibliotece React.js. Korzystają z niego także inne biblioteki.
Przykład
function Input({label}) {
const id = 'abc';
return (
<div>
<label for={id}>{label}</label>
<input id={id}/>
</div>
);
}
Zobacz też
Przypisy
Linki zewnętrzne
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.