---
title: "Render functions and JSX · vuejs.school"
description: "Build output in JavaScript with h() when the structure is data, such as table columns with their own cell renderers, pass slots as functions, mount a toast with render(), and know when a template is still the better tool."
canonical_url: "https://vuejs.school/learn/advanced/render-functions-and-jsx"
meta:
  "og:description": "Build output in JavaScript with h() when the structure is data, such as table columns with their own cell renderers, pass slots as functions, mount a toast with render(), and know when a template is still the better tool."
  "og:image": "https://vuejs.school/_og/d/a_~UmVuZGVyIGZ1bmN0aW9ucyBhbmQgSlNYIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Render%2Bfunctions%2Band%2BJSX%2Cdescription_~QnVpbGQgb3V0cHV0IGluIEphdmFTY3JpcHQgd2l0aCBoKCkgd2hlbiB0aGUgc3RydWN0dXJlIGlzIGRhdGEsIHN1Y2ggYXMgdGFibGUgY29sdW1ucyB3aXRoIHRoZWlyIG93biBjZWxsIHJlbmRlcmVycywgcGFzcyBzbG90cyBhcyBmdW5jdGlvbnMsIG1vdW50IGEgdG9hc3Qgd2l0aCByZW5kZXIoKSwgYW5kIGtub3cgd2hlbiBhIHRlbXBsYXRlIGlzIHN0aWxsIHRoZSBiZXR0ZXIgdG9vbC4%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiA5IG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC9yZW5kZXItZnVuY3Rpb25zLWFuZC1qc3gi%2Cs_PkpKcRrEBisi094d.png"
  "og:image:alt": "Render functions and JSX · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Render functions and JSX · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~UmVuZGVyIGZ1bmN0aW9ucyBhbmQgSlNYIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Render%2Bfunctions%2Band%2BJSX%2Cdescription_~QnVpbGQgb3V0cHV0IGluIEphdmFTY3JpcHQgd2l0aCBoKCkgd2hlbiB0aGUgc3RydWN0dXJlIGlzIGRhdGEsIHN1Y2ggYXMgdGFibGUgY29sdW1ucyB3aXRoIHRoZWlyIG93biBjZWxsIHJlbmRlcmVycywgcGFzcyBzbG90cyBhcyBmdW5jdGlvbnMsIG1vdW50IGEgdG9hc3Qgd2l0aCByZW5kZXIoKSwgYW5kIGtub3cgd2hlbiBhIHRlbXBsYXRlIGlzIHN0aWxsIHRoZSBiZXR0ZXIgdG9vbC4%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiA5IG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC9yZW5kZXItZnVuY3Rpb25zLWFuZC1qc3gi%2Cs_PkpKcRrEBisi094d.png"
  "twitter:image:alt": "Render functions and JSX · vuejs.school"
---

> Index of every page on this site: [llms.txt](https://vuejs.school/llms.txt)

# **Render functions and JSX**

Build output in JavaScript with h() when the structure is data, such as table columns with their own cell renderers, pass slots as functions, mount a toast with render(), and know when a template is still the better tool.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuejs.school/#website","@type":"WebSite","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school/","publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#webpage","@type":"WebPage","description":"Build output in JavaScript with h() when the structure is data, such as table columns with their own cell renderers, pass slots as functions, mount a toast with render(), and know when a template is still the better tool.","name":"Render functions and JSX","url":"https://vuejs.school/learn/advanced/render-functions-and-jsx","breadcrumb":{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/advanced/render-functions-and-jsx"]}],"primaryImageOfPage":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/#identity","@type":"Organization","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school","logo":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#article","description":"Build output in JavaScript with h() when the structure is data, such as table columns with their own cell renderers, pass slots as functions, mount a toast with render(), and know when a template is still the better tool.","headline":"Render functions and JSX","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~UmVuZGVyIGZ1bmN0aW9ucyBhbmQgSlNYIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Render%2Bfunctions%2Band%2BJSX%2Cdescription_~QnVpbGQgb3V0cHV0IGluIEphdmFTY3JpcHQgd2l0aCBoKCkgd2hlbiB0aGUgc3RydWN0dXJlIGlzIGRhdGEsIHN1Y2ggYXMgdGFibGUgY29sdW1ucyB3aXRoIHRoZWlyIG93biBjZWxsIHJlbmRlcmVycywgcGFzcyBzbG90cyBhcyBmdW5jdGlvbnMsIG1vdW50IGEgdG9hc3Qgd2l0aCByZW5kZXIoKSwgYW5kIGtub3cgd2hlbiBhIHRlbXBsYXRlIGlzIHN0aWxsIHRoZSBiZXR0ZXIgdG9vbC4%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiA5IG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC9yZW5kZXItZnVuY3Rpb25zLWFuZC1qc3gi%2Cs_PkpKcRrEBisi094d.png","@type":["Article","TechArticle"],"articleSection":["Components"],"author":{"@id":"https://vuejs.school/#identity"},"image":{"@id":"https://vuejs.school/#/schema/image/1"},"isPartOf":{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#webpage"},"keywords":["h()","render function","slots as functions","render()"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/advanced/render-functions-and-jsx#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Skill tree","item":"https://vuejs.school/track","position":1},{"@type":"ListItem","name":"Advanced Vue","item":"https://vuejs.school/track/advanced","position":2},{"@type":"ListItem","name":"Render functions and JSX","position":3}]},{"@id":"https://vuejs.school/#logo","@type":"ImageObject","caption":"vuejs.school","contentUrl":"https://vuejs.school/apple-touch-icon.png","inLanguage":"en","url":"https://vuejs.school/apple-touch-icon.png"},{"@id":"https://vuejs.school/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuejs.school/_og/d/a_~UmVuZGVyIGZ1bmN0aW9ucyBhbmQgSlNYIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Render%2Bfunctions%2Band%2BJSX%2Cdescription_~QnVpbGQgb3V0cHV0IGluIEphdmFTY3JpcHQgd2l0aCBoKCkgd2hlbiB0aGUgc3RydWN0dXJlIGlzIGRhdGEsIHN1Y2ggYXMgdGFibGUgY29sdW1ucyB3aXRoIHRoZWlyIG93biBjZWxsIHJlbmRlcmVycywgcGFzcyBzbG90cyBhcyBmdW5jdGlvbnMsIG1vdW50IGEgdG9hc3Qgd2l0aCByZW5kZXIoKSwgYW5kIGtub3cgd2hlbiBhIHRlbXBsYXRlIGlzIHN0aWxsIHRoZSBiZXR0ZXIgdG9vbC4%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiA5IG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC9yZW5kZXItZnVuY3Rpb25zLWFuZC1qc3gi%2Cs_PkpKcRrEBisi094d.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~UmVuZGVyIGZ1bmN0aW9ucyBhbmQgSlNYIMK3IHZ1ZWpzLnNjaG9vbA%2Cc_OgCard.takumi%2Ctitle_Render%2Bfunctions%2Band%2BJSX%2Cdescription_~QnVpbGQgb3V0cHV0IGluIEphdmFTY3JpcHQgd2l0aCBoKCkgd2hlbiB0aGUgc3RydWN0dXJlIGlzIGRhdGEsIHN1Y2ggYXMgdGFibGUgY29sdW1ucyB3aXRoIHRoZWlyIG93biBjZWxsIHJlbmRlcmVycywgcGFzcyBzbG90cyBhcyBmdW5jdGlvbnMsIG1vdW50IGEgdG9hc3Qgd2l0aCByZW5kZXIoKSwgYW5kIGtub3cgd2hlbiBhIHRlbXBsYXRlIGlzIHN0aWxsIHRoZSBiZXR0ZXIgdG9vbC4%2Ceyebrow_~QWR2YW5jZWQgVnVlIMK3IExlc3NvbiA5IG9mIDEx%2Ctint_lilac%2Cp_Ii9sZWFybi9hZHZhbmNlZC9yZW5kZXItZnVuY3Rpb25zLWFuZC1qc3gi%2Cs_PkpKcRrEBisi094d.png"}]}
```