React & React Native

JSX vs HTML (className, htmlFor)

Në shqip: Dallimet mes JSX-it dhe HTML-së

ShpjegimiSQ

JSX ngjan me HTML, por ka disa dallime: class shkruhet className, for shkruhet htmlFor, çdo etiketë duhet mbyllur (<img />), dhe atributet shkruhen camelCase (onClick, tabIndex).

EnglishEN

JSX looks like HTML, but with some differences: class becomes className, for becomes htmlFor, every tag must be closed (<img />), and attributes are camelCase (onClick, tabIndex).

Si ta mendosh

Si shqipja e Kosovës dhe e Shqipërisë: e njëjta gjuhë, me disa fjalë ndryshe.

Lexoje në anglisht

Like two dialects of the same language: mostly identical, a few words different.

Shembull kodijavascript

<label htmlFor="emri" className="etiketa">Emri</label>
<input id="emri" tabIndex={0} />
<img src="logo.svg" alt="Logo" />

Terma të lidhur