# Rendering Modes

The TabStrip supports three types of rendering scenarios for its Tabs:

* `on-demand`(default)—in this mode, only the content of the currently selected Tab is rendered in the DOM; if a new selection is made, the available content is destroyed.
* `hybrid`—in this mode, the Tabs' content is handled similarly to the `on-demand` mode but the already rendered content is not removed from the DOM.
* `pre-rendered`—in this mode, the content of all Tabs is rendered on TabStrip's initialization and persisted in the DOM no matter the current selection.

To configure the different rendering options, we should use the [renderAllContent](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstripprops#renderallcontent) and [keepTabsMounted](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstripprops#keeptabsmounted) properties. Below you can test each of the rendering scenarios:

* [On-Demand Tabs Rendering](https://www.telerik.com/kendo-react-ui/components/layout/tabstrip/rendering-modes#on-demand-tabs-rendering)
* [Hybrid Tabs Rendering](https://www.telerik.com/kendo-react-ui/components/layout/tabstrip/rendering-modes#hybrid-tabs-rendering)
* [Pre-rendering Tabs](https://www.telerik.com/kendo-react-ui/components/layout/tabstrip/rendering-modes#pre-rendering-tabs)

> To see the difference between the rendering modes, inspect the DOM in each of the following examples and compare the available content.

## On-Demand Tabs Rendering

By default, the TabStrip works in `on-demand` mode, meaning that only the content of the currently selected Tab is available in the DOM tree.

The following example doesn't have specific rendering configuration and demonstrates the default on-demand mode in action.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tabstrip/overview/basic/func/source.txt)

## Hybrid Tabs Rendering

To enable the persistence of the content of the already rendered Tabs, we need to use the [keepTabsMounted](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstripprops#keeptabsmounted) property.

Below you will find an example in which the `keepTabsMounted` prop is set to `true`. In this example, once a Tab is activated, its content remains in the DOM, no matter the further interaction with the component.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tabstrip/hybrid-rendering/func/source.txt)

## Pre-rendering Tabs

If your scenario requires the default rendering of all TabStrip Tabs by default, you need to set the [renderAllContent](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstripprops#renderallcontent) property to `true` as demonstrated in the following example.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/tabstrip/pre-rendering/func/source.txt)

## Suggested Links

* [API Reference of the TabStripTab Component](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstriptabprops)
* [API Reference of the Tabstrip](https://www.telerik.com/kendo-react-ui/components/layout/api/tabstripprops)
