Hi,
Yes you can use react for Kentico widgets. We use reactjs.net for the rendering, this includes server side rendering. You could use the documentation there to setup your project. The next step is to create your widget and render the react component in the view.
@Html.React("ReactComponent", new
{
items = Model.Items,
})
For rendering in the pagebuilder you need to include some javascript in the view of the widget to initialize the component when it is added in the pagebuilder. This is because in the pagebuilder widgets are added dynamically, and thus causing the '@Html.ReactInitJavaScript()' in the layout not initializing the react component in the widgets.
@if (Context.Kentico().PageBuilder().EditMode)
{
@Html.ReactInitJavaScript()
}