Rendering

A render in Qwik is when the component's top level function runs, including the JSX in the return statement.

export default component$(() => {
  return <div>Hello</div>
})

// I'm the top level function / render function
() => {
    // I am the JSX that gets outputted during the render
    return <div>Hello</div>
}

A re-render is when the callback function is called again.

export default component$(() => {
    return <div>Hello</div>
})