What is JSX?
JSX is a syntax extension for JavaScript that compiles to React.createElement calls. It lets you write UI descriptions in a markup-like style while remaining pure JavaScript that can embed expressions.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in React Components and JSX Interview Questions With Answers
A component is a reusable, independent piece of UI described as a function that returns JSX. It accepts props, can manage its own state, and React composes many components to build full user interfaces.
Props are inputs passed from a parent to a child and are read-only inside the child. State is internal data managed by the component that can change over time and trigger re-renders.
React treats lowercase tag names as DOM elements like div and capitalized names as components. Capitalization is how React distinguishes a custom component from a built-in HTML tag.
Still have questions?
Browse all our FAQs or reach out to our support team
