[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [view](../README) / FC

# Type Alias: FC\<P\>

> **FC**\<`P`\> = (`props`) => [`SafeHtml`](../classes/SafeHtml)

Defined in: [packages/core/src/view/jsx-runtime.ts:93](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/view/jsx-runtime.ts#L93)

Function-component type: a function taking typed props (plus optional
`children`) and returning [SafeHtml](../classes/SafeHtml). Use it to annotate view
components authored outside of `.tsx` files.

## Type Parameters

### P

`P` *extends* `Record`\<`string`, `unknown`\> = `Record`\<`string`, `never`\>

The component's own prop shape.

## Parameters

### props

`P` & `object`

## Returns

[`SafeHtml`](../classes/SafeHtml)
