HTML components show their markup; React components show JSX. The page re-renders as you type.
React components
A React component exports itself as the default and can import from react only:
Counter.jsx
import { useState } from 'react'
export default function Counter() {
const [n, setN] = useState(0)
return <button onClick={() => setN(n + 1)}>Clicked {n} times</button>
}Note
On the canvas, components appear as they first render. To click through state, effects and events, open the live React app preview.

Scoped CSS
The CSS tab only affects that one component, so its styles never leak into others.