JSX is a JavaScript syntax extension used by React and Preact to write markup-like expressions in component code instead of writing HTML directly. section 1.3.1
JSX fits into frontend component development by:
- Keeping view structure and JavaScript behavior together in a component. section 1.3.1
- Requiring a build step before frontend code is bundled, minified, and shipped to browsers. section 1.3.1
{hasDiscount && <p>You get a discount!</p>}
Compare JSX conditional rendering with template directives and block syntax used by other frontend frameworks. section 1.3.1





