### Summarized Grid Component Setup Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/getting-started/sharepoint.md A consolidated example showing the data source definition and the Grid component setup with necessary imports and theme. This is useful for a quick setup. ```typescript import * as React from 'react'; import { IAppProps } from './IAppProps'; import { ColumnDirective, ColumnsDirective, GridComponent } from '@syncfusion/ej2-react-grids'; require('@syncfusion/ej2-tailwind3-theme/styles/grid/index.css'); export default class App extends React.Component { public render(): React.ReactElement { const data = [ { OrderID: 10248, CustomerID: 'VINET', EmployeeID: 5, ShipCountry: 'France', Freight: 32.38 }, { OrderID: 10249, CustomerID: 'TOMSP', EmployeeID: 6, ShipCountry: 'Germany', Freight: 11.61 }, { OrderID: 10250, CustomerID: 'HANAR', EmployeeID: 4, ShipCountry: 'Brazil', Freight: 65.83 } ]; return ( ); } } ``` -------------------------------- ### Install Dependencies and Start Vite Project Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/schedule/vite-js.md Choose 'Yes' to install dependencies and start the Vite development server immediately. ```bash √ Install with npm and start now? » **Yes** ``` -------------------------------- ### Clone Azure ASP.NET Core File Provider Example Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/file-manager/file-system-provider.md Clone the sample project from GitHub to get started with the Azure file system provider. ```bash git clone https://github.com/SyncfusionExamples/azure-aspcore-file-provider azure-aspcore-file-provider ``` -------------------------------- ### React Message Component - Getting Started Example Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/message/getting-started.md This example demonstrates the basic integration of the Syncfusion React Message component. It includes JSX, TypeScript, and HTML configurations. ```jsx import { MessageComponent } from '@syncfusion/ej2-react-notifications'; import './App.css'; function App() { return (); } ``` ```tsx import { MessageComponent } from '@syncfusion/ej2-react-notifications'; import './App.css'; function App() { return (); } export default App; ``` ```html
``` -------------------------------- ### Create React App and Install Dependencies Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/getting-started/webpack-externals.md Use these commands to create a new React application folder, initialize a package.json file, and install React and ReactDOM. ```bash mkdir Syncfusion-react-demo cd Syncfusion-react-demo npm init -y npm install react@18.2.0 react-dom@18.2.0 ``` -------------------------------- ### Getting Started with Smithchart in React (TypeScript) Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/smithchart/smithchart-dimensions.md This is the basic setup for rendering a Smithchart component in a React application using TypeScript. Ensure the necessary imports are included. ```typescript import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { SmithchartComponent, AxesDirective, AxisDirective, SeriesCollectionDirective, SeriesDirective, Inject } from '@syncfusion/ej2-react-charts'; import { Legend, Tooltip, Category, DataLabel, LineSeries } from '@syncfusion/ej2-react-charts'; function App() { return ( ); } export default App; const data = [ { x: 0, y: 0 }, { x: 10, y: 10 }, { x: 20, y: 20 }, { x: 30, y: 30 }, { x: 40, y: 40 }, { x: 50, y: 50 }, { x: 60, y: 60 }, { x: 70, y: 70 }, { x: 80, y: 80 }, { x: 90, y: 90 }, { x: 100, y: 100 } ]; ``` -------------------------------- ### Gatsby Project Setup Configuration Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/getting-started/gatsby.md This example shows the interactive prompts and configurations when setting up a new Gatsby project, including project name, language, CMS, and styling choices. ```bash What would you like to call your site? √ · my-project What would you like to name the folder where your site will be created? √ / my-project √ Will you be using JavaScript or TypeScript? · TypeScript √ Will you be using a CMS? · No (or I'll add it later) √ Would you like to install a styling system? · No (or I'll add it later) √ Would you like to install additional features with other plugins?No items were selected Thanks! Here's what we'll now do: Create a new Gatsby site in the folder my-project? Shall we do this? (Y/n) » Yes ``` -------------------------------- ### Getting Started with Smithchart in React (JavaScript) Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/smithchart/smithchart-dimensions.md This is the basic setup for rendering a Smithchart component in a React application using JavaScript. Ensure the necessary imports are included. ```javascript import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { SmithchartComponent, AxesDirective, AxisDirective, SeriesCollectionDirective, SeriesDirective } from '@syncfusion/ej2-react-charts'; function App() { return ( ); } export default App; const data = [ { x: 0, y: 0 }, { x: 10, y: 10 }, { x: 20, y: 20 }, { x: 30, y: 30 }, { x: 40, y: 40 }, { x: 50, y: 50 }, { x: 60, y: 60 }, { x: 70, y: 70 }, { x: 80, y: 80 }, { x: 90, y: 90 }, { x: 100, y: 100 } ]; ``` -------------------------------- ### React Range Navigator Getting Started Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/range-navigator/selecting-range.md This snippet demonstrates the basic setup for the Range Navigator component in a React application. It includes both JavaScript and TypeScript versions. ```js import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { RangeNavigatorComponent, RangeNavigatorSeriesCollection, RangeNavigatorArea, RangeNavigatorTitle } from '@syncfusion/ej2-react-charts'; function App() { return ( ); } export default App; ReactDOM.render(, document.getElementById('root')); ``` ```ts import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { RangeNavigatorComponent, RangeNavigatorSeriesCollection, RangeNavigatorArea, RangeNavigatorTitle } from '@syncfusion/ej2-react-charts'; function App() { return ( ); } export default App; ReactDOM.render(, document.getElementById('root')); ``` -------------------------------- ### Run Client Application Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/connecting-to-backends/fastapi-server.md Execute the command to start the client application. Navigate to the 'client' directory first. ```bash cd client npm run dev ``` -------------------------------- ### Select Skills to Install Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/skills.md This is an example of the interactive skill selection prompt. Use space to toggle skills and arrow keys to navigate. ```bash Select skills to install (space to toggle) │ ◻ syncfusion-react-3d-chart (Implement Syncfusion React 3D Chart component from the @s...) │ ◻ syncfusion-react-3d-circular-chart │ ◻ syncfusion-react-accordion │ ◻ syncfusion-react-accumulation-chart │ ◻ syncfusion-react-ai-assistview │ ◻ syncfusion-react-appbar │ ◻ syncfusion-react-avatar │ ◻ syncfusion-react-barcode │ ◻ syncfusion-react-blockeditor | ..... ``` -------------------------------- ### Getting Started with React Range Slider Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/range-slider/format.md This snippet shows the basic setup for the React Range Slider component. It includes the necessary JSX, CSS, and HTML configurations. ```jsx import * as React from "react"; import * as ReactDOM from "react-dom"; import { SliderComponent, TrackComponent, TicksComponent, TickComponent, TooltipComponent, } from "@syncfusion/ej2-react-inputs"; function App() { return (
); } export default App; ``` ```tsx import * as React from "react"; import * as ReactDOM from "react-dom"; import { SliderComponent, TrackComponent, TicksComponent, TickComponent, TooltipComponent, } from "@syncfusion/ej2-react-inputs"; function App() { return (
); } export default App; ``` ```css .App { margin: 30px auto; width: 300px; } ``` ```html React App
``` -------------------------------- ### Create Project Folder and Navigate Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/connecting-to-backends/graphql-nodejs-server.md Create a new directory for your GraphQL server and navigate into it. Also, create a 'src' directory for source files. ```bash mkdir GraphQLServer cd GraphQLServer mkdir src cd src ``` -------------------------------- ### React Range Navigator Getting Started with Label Format Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/range-navigator/data.md This snippet demonstrates the basic setup for the Range Navigator component, including how to apply label formatting. It is available in both JavaScript and TypeScript. ```jsx import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { RangeNavigatorComponent, RangeEventArgs } from '@syncfusion/ej2-react-charts'; function App() { const onChartLoad = (args: RangeEventArgs) => { args.range < args.range.data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]; }; return ( ); } export default App; ``` ```tsx import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { RangeNavigatorComponent, RangeEventArgs } from '@syncfusion/ej2-react-charts'; function App() { const onChartLoad = (args: RangeEventArgs) => { args.range < args.range.data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]; }; return ( ); } export default App; ``` -------------------------------- ### Create Server Workspace and Install Packages Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/connecting-to-backends/fastapi-server.md Sets up a new server workspace with a virtual environment and installs FastAPI and Uvicorn. This ensures isolated backend dependencies and provides a high-performance ASGI server for development. ```bash mkdir server cd server python -m venv .venv # Windows .venv\Scripts\activate # macOS/Linux # source .venv/bin/activate ``` ```bash pip install fastapi uvicorn ``` -------------------------------- ### Getting Started with Markdown Editor (Class Component) Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/markdown-editor/accessibility.md This snippet demonstrates the basic setup for the Markdown Editor using a class component. Ensure you have the necessary imports for React and the Markdown Editor. ```jsx import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { MarkdownEditor } from '@syncfusion/ej2-react-markdown-editor'; function App() { return ( ); } export default App; ``` ```tsx import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { MarkdownEditor } from '@syncfusion/ej2-react-markdown-editor'; function App() { return ( ); } export default App; ``` -------------------------------- ### Navigate to Project Directory and Install Dependencies Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/block-editor/getting-started.md After creating the React application, navigate to the project directory and install the necessary dependencies. ```bash cd my-app npm install ``` -------------------------------- ### Clone Google Drive ASP.NET Core File Provider Sample Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/file-manager/file-system-provider.md Clone the sample project from GitHub to get started with the Google Drive file system provider. Navigate into the cloned directory to proceed with the setup. ```bash git clone https://github.com/SyncfusionExamples/google-drive-aspcore-file-provider google-drive-aspcore-file-provider cd google-drive-aspcore-file-provider ``` -------------------------------- ### Clone and Run Sample Repository Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/connecting-to-backends/graphql-hotchocolate-server.md Clone the complete sample repository from GitHub and run the ASP.NET Core backend. This provides a ready-to-use example for experimentation. ```bash git clone https://github.com/SyncfusionExamples/syncfusion-react-grid-component-with-hotchocolate-graphql-server.git cd syncfusion-react-grid-component-with-hotchocolate-graphql-server dotnet run --project ReactApp1.Server ``` -------------------------------- ### React Class Component Dialog - Getting Started Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/dialog/accessibility.md This code snippet demonstrates the basic setup for a Dialog component using a class component in React. It includes necessary imports and JSX structure for rendering the Dialog. ```jsx import { DialogComponent } from '@syncfusion/ej2-react-popups'; import * as React from 'react'; function App() { return (

This is a Dialog with basic functionalities.

); } export default App; ``` ```tsx import { DialogComponent } from '@syncfusion/ej2-react-popups'; import * as React from 'react'; function App() { return (

This is a Dialog with basic functionalities.

); } export default App; ``` -------------------------------- ### Start Development Server Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/getting-started/create-app.md Use npm or yarn to start the development server and view your React application with the Syncfusion Grid. ```bash npm start ``` ```bash yarn start ``` -------------------------------- ### Start LiteLLM Proxy Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/ai-assistview/ai-integrations/lite-llm-integration.md Command to install LiteLLM with proxy support and start the proxy server. Ensure you have Python and pip installed. ```bash pip install "litellm[proxy]" litellm --config ".\config.yaml" --port 4000 --host 0.0.0.0 ``` -------------------------------- ### Run Client Application Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/gantt/connecting-to-adaptors/graphql-adaptor.md Navigate to the Gantt client directory and start the client application using npm. ```bash cd GanttClient npm run dev ``` -------------------------------- ### Start React Frontend Application Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/connecting-to-backends/flaskapi-server.md Navigate to the client directory and start the React development server using npm. The application will run on http://localhost:5173. ```bash cd react-grid-flask-api/client npm run dev ``` -------------------------------- ### Install Yeoman Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/grid/sharepoint.md Installs Yeoman globally. Yeoman is a scaffolding tool to help start new projects with best practices. ```bash npm install yo --global ``` -------------------------------- ### Start ASP.NET Core Backend Server Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/diagram/mysql-server.md Run the command to start the backend server. ```bash dotnet run ``` -------------------------------- ### Set Up React Entry File Source: https://github.com/syncfusion-content/ej2-react-docs/blob/development/ej2-react/schedule/axios-integration.md Initialize the React application using createRoot API from React 18 and include global styles. ```javascript // src/main.jsx import { createRoot } from 'react-dom/client'; import React from 'react'; import App from './App.jsx'; import './index.css'; createRoot(document.getElementById('root')).render( ); ```