Skip to content

Commit b9a21a3

Browse files
committed
1011820: Addressed review comments.
1 parent be355e3 commit b9a21a3

4 files changed

Lines changed: 74 additions & 58 deletions

File tree

Document-Processing/Excel/Spreadsheet/React/Environment Integrations/create-react-app.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ The recommended approach is to use the [`Create React App`](https://github.com/f
2222

2323
To create a new application using JavaScript:
2424

25-
```
25+
```bash
2626
npx create-react-app my-app
2727
cd my-app
2828
```
2929

3030
or
3131

32-
```
32+
```bash
3333
yarn create react-app my-app
3434
cd my-app
3535
```
3636

3737
To create a React application in `TypeScript` environment, run the following command:
3838

39-
```
39+
```bash
4040
npx create-react-app my-app --template typescript
4141
cd my-app
4242
```
4343

4444
Besides using the [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) package runner tool, also create an application from the `npm init`. To begin with the `npm init`, upgrade the `npm` version to `npm 6`+.
4545

46-
```
46+
```bash
4747
npm init react-app my-app
4848
cd my-app
4949
```
@@ -54,13 +54,13 @@ After running the above commands, the project will be created and all required d
5454

5555
To install the React Spreadsheet package, use the following command:
5656

57-
```
57+
```bash
5858
npm install @syncfusion/ej2-react-spreadsheet --save
5959
```
6060
or
6161

62-
```
63-
yarn add @syncfusion/ej2-react-grids
62+
```bash
63+
yarn add @syncfusion/ej2-react-spreadsheet
6464
```
6565

6666
## Import CSS
@@ -108,13 +108,13 @@ export default function App() {
108108
## Run the application
109109
Run the app using the following commands:
110110

111-
```
111+
```bash
112112
npm start
113113
```
114114

115115
or
116116

117-
```
117+
```bash
118118
yarn start
119119
```
120120

Document-Processing/Excel/Spreadsheet/React/Environment Integrations/preact.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ Ensure the following requirements are met before starting:
2222

2323
To create a new Preact project, use one of the commands that are specific to either NPM or Yarn.
2424

25-
```
25+
```bash
2626
npm init preact@latest
2727
```
2828
or
2929

30-
```
30+
```bash
3131
yarn create preact
3232
```
3333

3434
Using one of the above commands will lead you to set up additional configurations for the project, as below:
3535

3636
**Step 1: Define the project name** - You can specify the name of the project directly. Let’s specify the name of the project as `my-project` for this article.
3737

38-
```
38+
```bash
3939
T Preact - Fast 3kB alternative to React with the same modern API
4040
|
4141
* Project directory:
@@ -45,7 +45,7 @@ T Preact - Fast 3kB alternative to React with the same modern API
4545

4646
**Step 2: Choose the project language** - Select JavaScript as the framework variant to build this Preact project using JavaScript.
4747

48-
```
48+
```bash
4949
T Preact - Fast 3kB alternative to React with the same modern API
5050
|
5151
* Project language:
@@ -56,7 +56,7 @@ T Preact - Fast 3kB alternative to React with the same modern API
5656

5757
**Step 3: Configure project options** - Configure the project as shown below for this article.
5858

59-
```
59+
```bash
6060
T Preact - Fast 3kB alternative to React with the same modern API
6161
|
6262
* Use router?
@@ -74,14 +74,14 @@ T Preact - Fast 3kB alternative to React with the same modern API
7474

7575
**Step 4: Navigate to the project directory** - After completing the above steps to create `my-project`, navigate to the project directory using the following command:
7676

77-
```
77+
```bash
7878
cd my-project
7979
```
8080

8181
Ensure your HTML has a mount point for the app. For example, in `index.html` add:
8282

8383

84-
```
84+
```html
8585
<div id="app"></div>
8686
```
8787

@@ -91,12 +91,12 @@ Now that `my-project` is ready to run with default settings, let’s add Syncfus
9191

9292
To install the React Spreadsheet component package, use the following command:
9393

94-
```
94+
```bash
9595
npm install @syncfusion/ej2-react-spreadsheet --save
9696
```
9797
or
9898

99-
```
99+
```bash
100100
yarn add @syncfusion/ej2-react-spreadsheet
101101
```
102102

@@ -105,16 +105,16 @@ yarn add @syncfusion/ej2-react-spreadsheet
105105
Import the Syncfusion® component themes in the `src/style.css` file as shown below:
106106

107107
```css
108-
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
109-
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
110-
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
111-
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
112-
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
113-
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
114-
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
115-
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
116-
@import '../node_modules/@syncfusion/ej2-grids/styles/material.css';
117-
@import '../node_modules/@syncfusion/ej2-react-spreadsheet/styles/material.css';
108+
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
109+
@import '../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css';
110+
@import '../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css';
111+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css';
112+
@import '../node_modules/@syncfusion/ej2-lists/styles/tailwind3.css';
113+
@import '../node_modules/@syncfusion/ej2-navigations/styles/tailwind3.css';
114+
@import '../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css';
115+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/tailwind3.css';
116+
@import '../node_modules/@syncfusion/ej2-grids/styles/tailwind3.css';
117+
@import '../node_modules/@syncfusion/ej2-react-spreadsheet/styles/tailwind3.css';
118118
```
119119

120120
## Adding Spreadsheet component
@@ -134,16 +134,15 @@ export default function App() {
134134
## Run the project
135135
To run the project, use the following command:
136136

137-
```
137+
```bash
138138
npm run dev
139139
```
140140
or
141141

142-
```
142+
```bash
143143
yarn run dev
144144
```
145145

146-
147146
## See also
148147

149148
[Getting Started with Syncfusion React Spreadsheet](https://help.syncfusion.com/document-processing/excel/spreadsheet/react/getting-started)

Document-Processing/Excel/Spreadsheet/React/Environment Integrations/remix.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Remix automatically manages loading states during navigation or data fetching. D
3333

3434
To set up a basic Remix sample, run the following command:
3535

36-
```
36+
```bash
3737
npx create-react-router@latest
3838
```
3939

4040
The `create-react-router@latest` command create a remix app using the latest package versions.
4141

4242
When you run this command, you will be asked the following questions.
4343

44-
```
44+
```bash
4545
dir Where should we create your new project?
4646
./my-react-router-app
4747

@@ -57,15 +57,15 @@ When you run this command, you will be asked the following questions.
5757

5858
Navigate into the project directory with the below command and install the `react-router` package:
5959

60-
```
60+
```bash
6161
cd my-react-router-app
6262
```
6363

6464
## Adding Syncfusion Spreadsheet package
6565

6666
To include the React Spreadsheet component in your project, use the following command:
6767

68-
```
68+
```bash
6969
npm install @syncfusion/ej2-react-spreadsheet --save
7070
```
7171

@@ -74,23 +74,23 @@ npm install @syncfusion/ej2-react-spreadsheet --save
7474
Import the Syncfusion® component themes in the `app.css` file as shown below:
7575

7676
```css
77-
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
78-
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
79-
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
80-
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
81-
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
82-
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
83-
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
84-
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
85-
@import '../node_modules/@syncfusion/ej2-grids/styles/material.css';
86-
@import '../node_modules/@syncfusion/ej2-react-spreadsheet/styles/material.css';
77+
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
78+
@import '../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css';
79+
@import '../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css';
80+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css';
81+
@import '../node_modules/@syncfusion/ej2-lists/styles/tailwind3.css';
82+
@import '../node_modules/@syncfusion/ej2-navigations/styles/tailwind3.css';
83+
@import '../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css';
84+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/tailwind3.css';
85+
@import '../node_modules/@syncfusion/ej2-grids/styles/tailwind3.css';
86+
@import '../node_modules/@syncfusion/ej2-react-spreadsheet/styles/tailwind3.css';
8787
```
8888

8989
## Configure Server-Side Rendering (SSR)
9090

9191
For Syncfusion React Spreadsheet to function with Remix server-side rendering (via Vite), update your `vite.config.ts` file as shown:
9292

93-
```
93+
```js
9494
import { defineConfig } from "vite";
9595

9696
export default defineConfig({
@@ -128,18 +128,18 @@ export default function Index() {
128128

129129
Start your Remix application in development mode:
130130

131-
```
131+
```bash
132132
npm run dev
133133
```
134134

135135
For deployment, build your app for production,
136-
```
136+
```bash
137137
npm run build
138138
```
139139

140140
Then run the app in production mode:
141141

142-
```
142+
```bash
143143
npm run start
144144
```
145145

Document-Processing/Excel/Spreadsheet/React/Environment Integrations/sharepoint.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Quickstart to integrate the Syncfusion React Spreadsheet into an SP
55
control: Spreadsheet
66
platform: document-processing
77
documentation: ug
8-
domainurl: ##DomainURL##
98
---
109

1110
# Getting Started with React Spreadsheet in the SharePoint Framework
@@ -25,13 +24,13 @@ Create a new SPFx project using the following command:
2524

2625
**Step 1:** To initiate the creation of a new SharePoint project, use the following command:
2726

28-
```
27+
```bash
2928
yo @microsoft/sharepoint
3029
```
3130

3231
**Step 2:** Specify the name of the project as `my-project` and the name of the WebPart as `App` for this article. You will be prompted with a series of configuration questions as shown below:
3332

34-
```
33+
```bash
3534
Let's create a new Microsoft 365 solution.
3635
? What is your solution name? my-project
3736
? Which type of client-side component to create? WebPart
@@ -42,7 +41,7 @@ Add new Web part to solution my-project.
4241
4342
**Step 3:** To establish trust for the certificate in the development environment, execute the following command:
4443
45-
```
44+
```bash
4645
gulp trust-dev-cert
4746
```
4847
@@ -52,7 +51,7 @@ With these steps complete, your `my-project` SharePoint Framework solution is re
5251
5352
To install the React Spreadsheet component package, use the following command:
5453
55-
```
54+
```bash
5655
npm install @syncfusion/ej2-react-spreadsheet --save
5756
```
5857
@@ -61,20 +60,38 @@ Themes for Syncfusion React Spreadsheet can be applied using CSS files from npm
6160
6261
This example demonstrates importing the Material theme CSS within the `App.tsx` file located at `~/src/webparts/app/components/App.tsx`:
6362
64-
```
63+
```ts
64+
require('@syncfusion/ej2-base/styles/tailwind3.css');
65+
require('@syncfusion/ej2-inputs/styles/tailwind3.css');
66+
require('@syncfusion/ej2-buttons/styles/tailwind3.css');
67+
require('@syncfusion/ej2-splitbuttons/styles/tailwind3.css');
68+
require('@syncfusion/ej2-lists/styles/tailwind3.css');
69+
require('@syncfusion/ej2-navigations/styles/tailwind3.css');
70+
require('@syncfusion/ej2-popups/styles/tailwind3.css');
71+
require('@syncfusion/ej2-dropdowns/styles/tailwind3.css');
72+
require('@syncfusion/ej2-grids/styles/tailwind3.css');
6573
require('@syncfusion/ej2-react-spreadsheet/styles/tailwind3.css');
6674
```
6775
6876
## Add Spreadsheet Component
6977
7078
Add the below code in the App.tsx file inside the ~/src/webparts/app/components folder to render the spreadsheet.
7179
72-
```
80+
```ts
7381
import * as React from 'react';
7482
import { IAppProps } from './IAppProps';
7583
import { SpreadsheetComponent } from '@syncfusion/ej2-react-spreadsheet';
7684
77-
require('@syncfusion/ej2-react-spreadsheet/styles/tailwind3.css');
85+
require('@syncfusion/ej2-base/styles/tailwind3.css');
86+
require('@syncfusion/ej2-inputs/styles/tailwind3.css');
87+
require('@syncfusion/ej2-buttons/styles/tailwind3.css');
88+
require('@syncfusion/ej2-splitbuttons/styles/tailwind3.css');
89+
require('@syncfusion/ej2-lists/styles/tailwind3.css');
90+
require('@syncfusion/ej2-navigations/styles/tailwind3.css');
91+
require('@syncfusion/ej2-popups/styles/tailwind3.css');
92+
require('@syncfusion/ej2-dropdowns/styles/tailwind3.css');
93+
require('@syncfusion/ej2-grids/styles/tailwind3.css');
94+
require('@syncfusion/ej2-react-spreadsheet/styles/tailwind3.css');;
7895
7996
export default class App extends React.Component<IAppProps, {}> {
8097
@@ -87,7 +104,7 @@ export default class App extends React.Component<IAppProps, {}> {
87104
## Run the project
88105
To run the project, use the following command:
89106
90-
```
107+
```bash
91108
gulp serve
92109
```
93110

0 commit comments

Comments
 (0)