JSX
Mix HTML-like markup with JavaScript values.
export function Greeting(props) {
return (
<p>Hello, {props.name}!</p>
)
}A JavaScript library for building interactive user interfaces
Mix HTML-like markup with JavaScript values.
export function Greeting(props) {
return (
<p>Hello, {props.name}!</p>
)
}Build one component, then reuse it with different props.
label="New"Newlabel="Ready"Readylabel="Sold"SoldStore changing values with a getter and setter.
setCount(1)setCount(0)count()01<Show>→<For>→createResource→createContext→Change state. Update only the parts of your interface that depend on it.
| Product | Quantity | Unit price | Total |
|---|---|---|---|
| Red bricks | 120 | $0.50 | $60.00 |
| Blue bricks | 80 | $0.25 | $20.00 |
No component memoization needed.
Change the real DOM directly, without comparing a virtual copy.
<p>Count: 0</p>Keep unused framework code out of your bundle.
Use focused updates to help keep typing and clicks responsive.