# What's new in Grid v5.2.6

## Support for React Components in tooltips and widgets

React components are now supported in tooltips and widgets. Tooltips have `renderer` or `template` function that
can now return valid JSX that represents a React component. Widgets can now supply JSX as their `html` property. For example:

Cell tooltip:

```javascript
cellTooltipFeature: {
    tooltipRenderer: ({ record }) => (
        <React.StrictMode>
            <DemoTooltip record={record} />
        </React.StrictMode>
    )
},
```

React component in widget:

```javascript
bbar : {
    items:[{
        type:'widget',
        html:<DemoWidget />
    }]
},
```

See the [React guide](#Grid/guides/integration/react/guide.md#using-react-components-in-tooltips-and-widgets) for details.

<p class="last-modified">Last modified on 2023-10-26 8:19:11</p>