You can check integration of different versions of React (for example different release channels or PRs to React) by running the following commands:
-
node scripts/useReactVersion.mjs <version>
.Possible values for
version
:- default:
stable
(minimum supported React version) - a tag on npm, for example
next
,experimental
orlatest
- an older version, for example
^17.0.0
- default:
-
pnpm install
For react@next
specifically, there's a react-next
workflow in our CircleCI pipeline that you can trigger in CircleCI on the PR you want to test:
-
Go to https://app.circleci.com/pipelines/github/mui/mui-x?branch=pull/PR_NUMBER and replace
PR_NUMBER
with the PR number you want to test. -
Click
Trigger Pipeline
button. -
Expand
Add parameters (optional)
and add the following parameter:Parameter type Name Value string
workflow
react-next
-
Click
Trigger Pipeline
button.
You can pass the same version
to our CircleCI pipeline as well:
With the following API request we're triggering a run of the default workflow in
PR #24289 for react@next
curl --request POST \
--url https://circleci.com/api/v2/project/gh/mui/mui-x/pipeline \
--header 'content-type: application/json' \
--header 'Circle-Token: $CIRCLE_TOKEN' \
--data-raw '{"branch":"pull/24289/head","parameters":{"react-version":"next"}}'