Does my react app need to use react-scripts to be compatible with the UI Library?

Geoffrey Leclaire 20 Reputation points
2023-09-26T23:43:17.2366667+00:00

I have a react app that uses webpack for building the app and starting the dev server. I want to integrate Azure Communication Services UI Library in the app. The Setup and Composites - Get Started pages of the storybook make a few mentions of create-react-app. Does my app actually need to use react-scripts at all to be compatible with the UI Library?

Thanks in advance,

Geoffrey

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,232 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-09-27T20:19:52.2866667+00:00

    @Geoffrey Leclaire While I haven't played around with this library yet, based on the documentation, the steps laid out are for new users who are starting from scratch and since create-react-app doesn't support older version of React anymore (<18), which is required for the Communication UI Library, they have shared the steps to configure your project with react-scripts.

    Since you already have a project setup ready for react, you should simply be able to just install and use the library without any additional steps, if your project uses react version between 16.8.0 and 18.

    Also, the other requirements for the library from the documentation are

    • typescript >= 3.8.3
    • webpack >= 5.3.8

    If your project meets these requirements, you should be good to go without any changes.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.