# generaltranslation: General Translation Core SDK: JsxChild URL: https://generaltranslation.com/it/docs/core/types/jsx-child.mdx --- title: JsxChild description: Tipo union che rappresenta i singoli elementi del contenuto JSX --- ## Panoramica `JsxChild` rappresenta un singolo elemento nel contenuto JSX. ```typescript type JsxChild = string | JsxElement | Variable; ``` ## Elementi della union | Tipo | Descrizione | | ------------ | -------------------- | | `string` | Testo semplice | | `JsxElement` | Elemento strutturato | | `Variable` | Segnaposto dinamico | ## Esempi ### Tipi di base ```typescript copy import { JsxChild, Variable } from 'generaltranslation'; // Stringa const text: JsxChild = "Welcome!"; // Variabile const name: JsxChild = { k: 'userName' } as Variable; // Elemento const link: JsxChild = { t: 'a', c: ['Click here'] }; ``` ## Tipi correlati * [`JsxChildren`](/docs/core/types/jsx-children) - Insiemi di elementi JsxChild * [`JsxElement`](/docs/core/types/jsx-element) - Elementi strutturati