Skip to content

Commit 4607dd9

Browse files
Integrated latest changes at 05-08-2025 7:32:01 PM
1 parent 10fa575 commit 4607dd9

File tree

91 files changed

+1926
-2062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1926
-2062
lines changed

ej2-react/accordion/getting-started.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,30 @@ The following list of dependencies are required to use the React Accordion compo
2828

2929
## Setup for Local Development
3030

31-
To set-up a React application, choose any of the following ways. The best and easiest way is to use the [create-react-app](https://github.com/facebook/create-react-app). It sets up your development environment in JavaScript and improvise your application for production. Refer to the [installation instructions](https://github.com/facebook/create-react-app#creating-an-app) of `create-react-app`.
31+
To easily set up a React application, use `create-vite-app`, which provides a faster development environment, smaller bundle sizes, and optimized builds compared to traditional tools like `create-react-app`. For detailed steps, refer to the Vite [installation instructions](https://vitejs.dev/guide/). Vite sets up your environment using JavaScript and optimizes your application for production.
3232

33-
```bash
34-
npx create-react-app my-app
35-
cd my-app
36-
npm start
37-
```
33+
> **Note:** To create a React application using `create-react-app`, refer to this [documentation](https://ej2.syncfusion.com/react/documentation/getting-started/create-app) for more details.
3834
39-
or
35+
To create a new React application, run the following command.
4036

4137
```bash
42-
yarn create react-app my-app
43-
cd my-app
44-
yarn start
38+
npm create vite@latest my-app
4539
```
46-
47-
To set-up a React application in `TypeScript` environment, run the following command.
40+
To set-up a React application in TypeScript environment, run the following command.
4841

4942
```bash
50-
npx create-react-app my-app --template typescript
43+
npm create vite@latest my-app -- --template react-ts
5144
cd my-app
52-
npm start
45+
npm run dev
5346
```
54-
55-
Besides using the [npm](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+`.
47+
To set-up a React application in JavaScript environment, run the following command.
5648

5749
```bash
58-
npm init react-app my-app
50+
npm create vite@latest my-app -- --template react
5951
cd my-app
60-
npm start
52+
npm run dev
6153
```
6254

63-
64-
6555
## Adding Syncfusion<sup style="font-size:70%">&reg;</sup> packages
6656

6757
All the available Essential<sup style="font-size:70%">&reg;</sup> JS 2 packages are published in [`npmjs.com`](https://www.npmjs.com/~syncfusionorg) public registry.
@@ -83,17 +73,17 @@ npm install @syncfusion/ej2-react-navigations --save
8373

8474
```
8575

86-
> To refer `App.css` in the application then import it in the `src/App.ts` file.
76+
> To refer `App.css` in the application then import it in the `src/App.tsx` file.
8777
8878
## Initialize the Accordion using Items
8979

9080
The React Accordion can be rendered by defining an array of [`items`](https://ej2.syncfusion.com/react/documentation/api/accordion/#items).
9181

92-
* Import the Accordion component to your `src/App.ts` file using following code.
82+
* Import the Accordion component to your `src/App.tsx` file using following code.
9383

9484

9585

96-
```ts
86+
```tsx
9787
import { AccordionComponent, AccordionItemDirective, AccordionItemsDirective } from '@syncfusion/ej2-react-navigations';
9888
import * as React from 'react';
9989

@@ -132,10 +122,10 @@ export default ReactApp;
132122

133123

134124

135-
* Run the application in the browser using the following command.
125+
Now run the `npm run dev` command in the console to start the development server. This command compiles your code and serves the application locally, opening it in the browser.
136126

137127
```
138-
npm start
128+
npm run dev
139129
```
140130
141131
{% previewsample "page.domainurl/code-snippet/accordion/accordion-cs4" %}
@@ -161,10 +151,10 @@ You need to follow the below structure of HTML elements to render the Accordion.
161151
```
162152

163153
{% tabs %}
164-
{% highlight js tabtitle="index.jsx" %}
154+
{% highlight js tabtitle="app.jsx" %}
165155
{% include code-snippet/accordion/accordion-cs5/app/index.jsx %}
166156
{% endhighlight %}
167-
{% highlight ts tabtitle="index.tsx" %}
157+
{% highlight ts tabtitle="app.tsx" %}
168158
{% include code-snippet/accordion/accordion-cs5/app/index.tsx %}
169159
{% endhighlight %}
170160
{% highlight html tabtitle="index.html" %}

ej2-react/ai-assistview/accessibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ The AI AssistView component's accessibility levels are ensured through an [acces
7373

7474
## See also
7575

76-
* [Accessibility in Syncfusion React components](../common/accessibility)
76+
* [Accessibility in Syncfusion<sup style="font-size:70%">&reg;</sup> React components](../common/accessibility)

ej2-react/ai-assistview/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ cd my-app
6161
npm start
6262
```
6363

64-
## Adding Syncfusion packages
64+
## Adding Syncfusion<sup style="font-size:70%">&reg;</sup> packages
6565

66-
All the available Essential JS 2 packages are published in [`npmjs.com`](https://www.npmjs.com/~syncfusionorg) public registry. You can choose the component that you want to install.
66+
All the available Essential<sup style="font-size:70%">&reg;</sup> JS 2 packages are published in [`npmjs.com`](https://www.npmjs.com/~syncfusionorg) public registry. You can choose the component that you want to install.
6767

6868
To install AI AssistView component, use the following command
6969

ej2-react/appbar/getting-started.md

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,30 @@ The following list of dependencies are required to use the AppBar component in y
2525

2626
## Setup your development environment
2727

28-
To set-up a React application, choose any of the following ways. The best and easiest way is to use the [create-react-app](https://github.com/facebook/create-react-app). It sets up your development environment in JavaScript and improvise your application for production. Refer to the [installation instructions](https://github.com/facebook/create-react-app#creating-an-app) of `create-react-app`.
28+
To easily set up a React application, use `create-vite-app`, which provides a faster development environment, smaller bundle sizes, and optimized builds compared to traditional tools like `create-react-app`. For detailed steps, refer to the Vite [installation instructions](https://vitejs.dev/guide/). Vite sets up your environment using JavaScript and optimizes your application for production.
2929

30-
```bash
31-
npx create-react-app my-app
32-
cd my-app
33-
npm start
34-
```
30+
> **Note:** To create a React application using `create-react-app`, refer to this [documentation](https://ej2.syncfusion.com/react/documentation/getting-started/create-app) for more details.
3531
36-
or
32+
To create a new React application, run the following command.
3733

3834
```bash
39-
yarn create react-app my-app
40-
cd my-app
41-
yarn start
35+
npm create vite@latest my-app
4236
```
43-
44-
To set-up a React application in `TypeScript` environment, run the following command.
37+
To set-up a React application in TypeScript environment, run the following command.
4538

4639
```bash
47-
npx create-react-app my-app --template typescript
40+
npm create vite@latest my-app -- --template react-ts
4841
cd my-app
49-
npm start
42+
npm run dev
5043
```
51-
52-
Besides using the [npm](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+`.
44+
To set-up a React application in JavaScript environment, run the following command.
5345

5446
```bash
55-
npm init react-app my-app
47+
npm create vite@latest my-app -- --template react
5648
cd my-app
57-
npm start
49+
npm run dev
5850
```
5951

60-
61-
6252
## Adding Syncfusion<sup style="font-size:70%">&reg;</sup> packages
6353

6454
All the available Essential<sup style="font-size:70%">&reg;</sup> JS 2 packages are published in [`npmjs.com`](https://www.npmjs.com/~syncfusionorg) public registry.
@@ -85,11 +75,11 @@ Add AppBar component's styles as given below in `App.css`.
8575

8676
## Add AppBar to the project
8777

88-
Now, you can create `AppBar` component in the application. Add `AppBar` component in `src/App.ts` file using the following code snippet.
78+
Now, you can create `AppBar` component in the application. Add `AppBar` component in `src/App.tsx` file using the following code snippet.
8979

9080

9181

92-
```ts
82+
```tsx
9383
import { AppBarComponent } from "@syncfusion/ej2-react-navigations";
9484
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
9585
import * as React from "react";
@@ -112,10 +102,10 @@ export default App;
112102

113103
## Run the application
114104

115-
Run the application in the browser using the following command:
105+
Now run the `npm run dev` command in the console to start the development server. This command compiles your code and serves the application locally, opening it in the browser.
116106

117107
```
118-
npm start
108+
npm run dev
119109
```
120110

121111
{% previewsample "page.domainurl/code-snippet/appbar/getting-started-cs1" %}

ej2-react/auto-complete/getting-started.md

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,29 @@ The following list of dependencies are required to use the `AutoComplete` compon
3535

3636
## Installation and configuration
3737

38-
You can use [`Create-react-app`](https://github.com/facebook/create-react-app) to setup the applications. To install `create-react-app` run the following command.
38+
To easily set up a React application, use `create-vite-app`, which provides a faster development environment, smaller bundle sizes, and optimized builds compared to traditional tools like `create-react-app`. For detailed steps, refer to the Vite [installation instructions](https://vitejs.dev/guide/). Vite sets up your environment using JavaScript and optimizes your application for production.
3939

40-
```bash
41-
npm install -g create-react-app
42-
```
40+
> **Note:** To create a React application using `create-react-app`, refer to this [documentation](https://ej2.syncfusion.com/react/documentation/getting-started/create-app) for more details.
4341
44-
Start a new project using create-react-app command as follows
42+
To create a new React application, run the following command.
4543

46-
```bash
47-
create-react-app quickstart --scripts-version=react-scripts-ts
48-
cd quickstart
49-
```
44+
```bash
45+
npm create vite@latest my-app
46+
```
47+
To set-up a React application in TypeScript environment, run the following command.
48+
49+
```bash
50+
npm create vite@latest my-app -- --template react-ts
51+
cd my-app
52+
npm run dev
53+
```
54+
To set-up a React application in JavaScript environment, run the following command.
55+
56+
```bash
57+
npm create vite@latest my-app -- --template react
58+
cd my-app
59+
npm run dev
60+
```
5061

5162
## Adding syncfusion<sup style="font-size:70%">&reg;</sup> packages
5263

@@ -55,9 +66,7 @@ All the available Essential<sup style="font-size:70%">&reg;</sup> JS 2 packages
5566
To install AutoComplete component, use the following command
5667

5768
```bash
58-
5969
npm install @syncfusion/ej2-react-dropdowns --save
60-
6170
```
6271

6372
## Adding AutoComplete component
@@ -68,7 +77,7 @@ Add the below code in the `src/App.tsx` to initialize the AutoComplete.
6877

6978
`[Class-component]`
7079

71-
```ts
80+
```tsx
7281

7382
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
7483
import * as React from 'react';
@@ -87,7 +96,7 @@ ReactDOM.render(<App />, document.getElementById('sample'));
8796

8897
`[Functional-component]`
8998

90-
```ts
99+
```tsx
91100
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
92101
import * as React from 'react';
93102
import * as ReactDOM from "react-dom";
@@ -121,7 +130,7 @@ After initialization, populate the data using [`dataSource`](https://ej2.syncfus
121130

122131
`[Class-component]`
123132

124-
```ts
133+
```tsx
125134

126135
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
127136
import * as React from 'react';
@@ -142,7 +151,7 @@ ReactDOM.render(<App />, document.getElementById('sample'));
142151

143152
`[Functional-component]`
144153

145-
```ts
154+
```tsx
146155

147156
import { AutoCompleteComponent } from '@syncfusion/ej2-react-dropdowns';
148157
import * as React from 'react';
@@ -161,19 +170,19 @@ ReactDOM.render(<App />, document.getElementById('sample'));
161170

162171
## Run the application
163172

164-
After completing the configuration required to render a basic AutoComplete, run the following command to display the output in your default browser.
173+
Now run the `npm run dev` command in the console to start the development server. This command compiles your code and serves the application locally, opening it in the browser.
165174

166175
```
167-
npm start
176+
npm run dev
168177
```
169178

170179
`[Class-component]`
171180

172181
{% tabs %}
173-
{% highlight js tabtitle="index.jsx" %}
182+
{% highlight js tabtitle="app.jsx" %}
174183
{% include code-snippet/dropdownlist/basic-cs3/app/index.jsx %}
175184
{% endhighlight %}
176-
{% highlight ts tabtitle="index.tsx" %}
185+
{% highlight ts tabtitle="app.tsx" %}
177186
{% include code-snippet/dropdownlist/basic-cs3/app/index.tsx %}
178187
{% endhighlight %}
179188
{% endtabs %}
@@ -183,10 +192,10 @@ npm start
183192
`[Functional-component]`
184193

185194
{% tabs %}
186-
{% highlight js tabtitle="index.jsx" %}
195+
{% highlight js tabtitle="app.jsx" %}
187196
{% include code-snippet/dropdownlist/basic-cs4/app/index.jsx %}
188197
{% endhighlight %}
189-
{% highlight ts tabtitle="index.tsx" %}
198+
{% highlight ts tabtitle="app.tsx" %}
190199
{% include code-snippet/dropdownlist/basic-cs4/app/index.tsx %}
191200
{% endhighlight %}
192201
{% endtabs %}
@@ -204,10 +213,10 @@ In the following sample, popup list's width and height are configured.
204213
`[Class-component]`
205214

206215
{% tabs %}
207-
{% highlight js tabtitle="index.jsx" %}
216+
{% highlight js tabtitle="app.jsx" %}
208217
{% include code-snippet/autocomplete/basic-cs19/app/index.jsx %}
209218
{% endhighlight %}
210-
{% highlight ts tabtitle="index.tsx" %}
219+
{% highlight ts tabtitle="app.tsx" %}
211220
{% include code-snippet/autocomplete/basic-cs19/app/index.tsx %}
212221
{% endhighlight %}
213222
{% endtabs %}
@@ -217,10 +226,10 @@ In the following sample, popup list's width and height are configured.
217226
`[Functional-component]`
218227

219228
{% tabs %}
220-
{% highlight js tabtitle="index.jsx" %}
229+
{% highlight js tabtitle="app.jsx" %}
221230
{% include code-snippet/autocomplete/basic-cs20/app/index.jsx %}
222231
{% endhighlight %}
223-
{% highlight ts tabtitle="index.tsx" %}
232+
{% highlight ts tabtitle="app.tsx" %}
224233
{% include code-snippet/autocomplete/basic-cs20/app/index.tsx %}
225234
{% endhighlight %}
226235
{% endtabs %}

0 commit comments

Comments
 (0)