Skip to content

riganti/dotvvm-samples-react-integration

Repository files navigation

Screenshot

React Integration Demo

This sample shows how to host React components in DotVVM pages.

Prerequisites

How to run the sample

  1. Open the GitHub repo in Visual Studio or git clone https://github.com/riganti/dotvvm-samples-react-integration.git

  2. Open ReactIntegrationDemo.sln Open the solution file

Sample 1: Recharts chart component & simple UpDown component

  1. In your favorite shell, navigate in the solution directory and run the following commands:
cd Recharts_UpDown
yarn install --immutable
yarn build
  1. Execute dotnet run or right-click the Recharts_UpDown project and select View > View in Browser View Recharts_UpDown in Browser

  2. You can interact with the React components in the page and see how they are able to synchronize with the other controls in the page.

Recharts & UpDown components demo

Sample 2: Digraph diagram component integration

  1. In your favorite shell, navigate in the solution directory and run the following commands. Make sure yarn is installed
cd Digraph
dotnet run
  1. Execute dotnet run or right-click the Digraph project and select View > View in Browser View Digraph in Browser

  2. You can interact with the React components in the page and see how they are able to synchronize with the other controls in the page.

Recharts & UpDown components demo

In order to rebuild JavaScript files faster, yarn dev command can be used to start rollup in watch mode.

Sample 3: Telerik KendoReact integration

  1. Obtain a license of Telerik KendoReact and place the license text file to the following path: Kendo/kendo-ui-license.txt

  2. In your favorite shell, navigate in the solution directory and run the following commands.

cd Kendo
npm ci
npm run build
  1. Execute dotnet run or right-click the Kendo project and select View > View in Browser View Kendo in Browser

  2. You can interact with the React components in the page and see how they are able to synchronize with the other controls in the page.

Kendo components demo

Sample 4: DevExtreme React integration

  1. Obtain a license of DevExtreme React.

  2. In your favorite shell, navigate in the solution directory and run the following commands.

cd DevExtreme
npm ci
npm run build
  1. Execute dotnet run or right-click the DevExtreme project and select View > View in Browser View DevExtreme in Browser

  2. You can interact with the React components in the page and see how they are able to synchronize with the other controls in the page.

DevExtreme components demo

Sample 5: Syncfusion React UI integration

  1. Obtain a license of Syncfusion React UI.

  2. In your favorite shell, navigate in the solution directory and run the following commands.

cd Syncfusion
npm ci
npm run build
  1. Execute dotnet run or right-click the Syncfusion project and select View > View in Browser View Syncfusion in Browser

  2. You can interact with the React components in the page and see how they are able to synchronize with the other controls in the page.

Syncfusion components demo

What you can learn in the sample

  • Wrapping React components to be used in DotVVM using the <js:Component /> control.
  • Set up rollup or esbuild pipeline to bundle all resources together

Other resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •