Skip to content

Commit 85c684f

Browse files
Merge pull request #127095 from carocao-msft/carocao/updateDoc
Update UI library doc to remove create react app reference
2 parents d6c135c + 3324e16 commit 85c684f

File tree

2 files changed

+13
-37
lines changed

2 files changed

+13
-37
lines changed

articles/communication-services/tutorials/call-readiness/call-readiness-overview.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,10 @@ Your final app prompts the user onto a supported browser and access for the came
8787

8888
## Set up the Project
8989

90-
To set up the [React](https://reactjs.org/) App, we use the create-react-app template for this quickstart. This `create-react-app` command creates an easy to run TypeScript App powered by React. The command installs the Azure Communication Services npm packages, and the [FluentUI](https://developer.microsoft.com/fluentui/) npm package for creating advanced UI. For more information on create-react-app, see: [Get Started with React](https://reactjs.org/docs/create-a-new-react-app.html).
90+
To create a react App, we use `vite`. It is a build tool that aims to provide a faster and leaner development experience for modern web projects.
91+
You can read more about `vite` here [Create a React App from scratch](https://react.dev/learn/build-a-react-app-from-scratch) and [Getting Started with Vite](https://vite.dev/guide/)
9192

92-
```bash
93-
# Create an Azure Communication Services App powered by React.
94-
npx create-react-app ui-library-call-readiness-app --template communication-react
95-
96-
# Change to the directory of the newly created App.
97-
cd ui-library-call-readiness-app
98-
```
99-
100-
At the end of this process, you should have a full application inside of the folder `ui-library-call-readiness-app`.
93+
Note that the Azure Communication Service UI library only supports up to React 18. Verify that you are on the supported version after creating the react app by checking `package.json`.
10194
For this quickstart, we modify the files inside of the `src` folder.
10295

10396
### Install Packages
@@ -106,15 +99,15 @@ As this feature is in public preview, you must use the beta versions of the Azur
10699

107100
```bash
108101
# Install Public Preview versions of the Azure Communication Services Libraries.
109-
npm install @azure/communication-react@1.5.1-beta.1 @azure/communication-calling@1.10.0-beta.1
102+
npm install @azure/communication-react@1.28.0-beta.1 @azure/communication-calling@1.36.3-beta.1
110103
```
111104

112105
> [!NOTE]
113-
> If you are installing the communication packages into an existing App, `@azure/communication-react` currently does not support React v18. To downgrade to React v17 or less follow [these instructions](https://azure.github.io/communication-ui-library/?path=/docs/setup--docs).
106+
> If you are installing the communication packages into an existing App, `@azure/communication-react` currently does not support React v19. To downgrade to React v18 or less follow [these instructions](https://azure.github.io/communication-ui-library/?path=/docs/setup--docs).
114107
115108
### Initial App Setup
116109

117-
To get us started, we replace the create-react-app default `App.tsx` content with a basic setup that:
110+
To get us started, we replace the default `App.tsx` content with a basic setup that:
118111

119112
- Registers the necessary icons we use in this tutorial
120113
- Sets a theme provider that can be used to set a custom theme
@@ -166,13 +159,13 @@ export const TestComplete = (): JSX.Element => {
166159
};
167160
```
168161

169-
### Run Create React App
162+
### Run React App
170163

171164
Let's test our setup by running:
172165

173166
```bash
174167
# Run the React App
175-
npm start
168+
npm run dev
176169
```
177170

178171
Once the App is running visit `http://localhost:3000` in your browser to see your running App.

articles/communication-services/tutorials/calling-widget/calling-widget-tutorial.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,34 +66,17 @@ This tutorial has 7 steps and at the end the app will be able to call a Teams vo
6666

6767
Only use this step if you're creating a new application.
6868

69-
To set up the react App, we use the `create-react-app` command line tool. This tool
70-
creates an easy to run TypeScript application powered by React.
69+
To create a react App, we use `vite`. It is a build tool that aims to provide a faster and leaner development experience for modern web projects.
70+
You can read more about `vite` here [Create a React App from scratch](https://react.dev/learn/build-a-react-app-from-scratch) and [Getting Started with Vite](https://vite.dev/guide/)
71+
72+
Note that the Azure Communication Service UI library only supports up to React 18. Verify that you are on the supported version after creating the react app by checking `package.json`
7173

7274
To make sure that you have Node installed on your machine, run this command in PowerShell or the terminal to see your Node version:
7375

7476
```bash
7577
node -v
7678
```
7779

78-
If you don't have `create-react-app` installed on your machine, run the following command to install it as a global command:
79-
80-
```bash
81-
npm install -g create-react-app
82-
```
83-
After that command is installed, run this next command to create a new react application to build the sample in:
84-
85-
```bash
86-
# Create an Azure Communication Services App powered by React.
87-
npx create-react-app ui-library-calling-widget-app --template typescript
88-
89-
# Change to the directory of the newly created App.
90-
cd ui-library-calling-widget-app
91-
```
92-
After these commands complete, you want to open the created project in VS Code. You can open the project with the following command.
93-
```bash
94-
code .
95-
```
96-
9780
### 2. Get your dependencies
9881

9982
Then, you need to update the dependency array in the `package.json` to include some packages from Azure Communication Services for the widget experience we're going to build to work:
@@ -703,7 +686,7 @@ Finally we can run the application to make our calls! Run the following commands
703686
npm install
704687

705688
# run the React app
706-
npm run start
689+
npm run dev
707690
```
708691

709692
Once the app is running, you can see it on `http://localhost:3000` in your browser. You should see the following splash screen:

0 commit comments

Comments
 (0)