Skip to content

Bump react-component peer deps to support React 18#24972

Merged
micahgodbolt merged 6 commits intomicrosoft:masterfrom
micahgodbolt:bump-react-peer-dep
Oct 13, 2022
Merged

Bump react-component peer deps to support React 18#24972
micahgodbolt merged 6 commits intomicrosoft:masterfrom
micahgodbolt:bump-react-peer-dep

Conversation

@micahgodbolt
Copy link
Member

Fixes #24971

To establish confidence that react-components will function properly, we have:

  1. triaged all known issues for using react-components in React 18
  2. created a test app (react-test-tests-v9) to test issues we've already fixed, and provide a platform for future triage and testing
  3. Publishing a custom storybook release with current controls, rendered in React 18 + strict mode

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 27, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7d28763:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 27, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
react-accordion
Accordion (including children components)
79.037 kB
24.059 kB
react-alert
Alert
84.529 kB
21.171 kB
react-avatar
Avatar
48.828 kB
13.842 kB
react-avatar
AvatarGroup
14.95 kB
5.989 kB
react-avatar
AvatarGroupItem
68.796 kB
19.182 kB
react-badge
Badge
22.6 kB
7.205 kB
react-badge
CounterBadge
23.49 kB
7.489 kB
react-badge
PresenceBadge
24.05 kB
7.067 kB
react-button
Button
36.69 kB
9.818 kB
react-button
CompoundButton
43.715 kB
11.036 kB
react-button
MenuButton
39.384 kB
10.72 kB
react-button
SplitButton
46.83 kB
12.102 kB
react-button
ToggleButton
52.557 kB
11.29 kB
react-card
Card - All
67.17 kB
19.281 kB
react-card
Card
62.852 kB
18.198 kB
react-card
CardFooter
8.561 kB
3.601 kB
react-card
CardHeader
9.604 kB
3.94 kB
react-card
CardPreview
8.662 kB
3.656 kB
react-combobox
Combobox (including child components)
75.071 kB
24.394 kB
react-combobox
Dropdown (including child components)
74.799 kB
24.352 kB
react-components
react-components: Button, FluentProvider & webLightTheme
62.781 kB
17.574 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.227 kB
52.474 kB
react-components
react-components: FluentProvider & webLightTheme
33.4 kB
11.008 kB
react-dialog
Dialog (including children components)
82.465 kB
24.447 kB
react-divider
Divider
16.459 kB
5.902 kB
react-image
Image
10.78 kB
4.264 kB
react-infobutton
InfoButton
7.696 kB
3.241 kB
react-input
Input
23.762 kB
7.706 kB
react-label
Label
9.338 kB
3.86 kB
react-link
Link
11.806 kB
4.868 kB
react-menu
Menu (including children components)
116.558 kB
35.725 kB
react-menu
Menu (including selectable components)
119.627 kB
36.246 kB
react-overflow
hooks only
10.685 kB
4.104 kB
react-persona
Persona
53.946 kB
15.225 kB
react-popover
Popover
102.756 kB
31.5 kB
react-portal
Portal
10.582 kB
3.875 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
react-positioning
usePositioning
19.7 kB
7.404 kB
react-progress
Progress
11.302 kB
4.549 kB
react-provider
FluentProvider
15.761 kB
5.885 kB
react-radio
Radio
36.39 kB
12.103 kB
react-radio
RadioGroup
14.248 kB
5.7 kB
react-select
Select
20.846 kB
7.346 kB
react-slider
Slider
31.759 kB
10.064 kB
react-spinbutton
SpinButton
44.102 kB
12.425 kB
react-spinner
Spinner
19.977 kB
6.438 kB
react-switch
Switch
33.342 kB
10.557 kB
react-text
Text - Default
11.782 kB
4.605 kB
react-text
Text - Wrappers
15.092 kB
5.044 kB
react-textarea
Textarea
25.018 kB
8.133 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
29.65 kB
6.444 kB
react-theme
Teams: Light theme
17.486 kB
5.057 kB
react-tooltip
Tooltip
41.566 kB
14.644 kB
🤖 This report was generated against a8e81b5296f1551e74010c1d2ad9d37c6fd48306

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 27, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1275 1262 5000
Button mount 927 924 5000
FluentProvider mount 1487 1482 5000
FluentProviderWithTheme mount 573 578 10
FluentProviderWithTheme virtual-rerender 539 550 10
FluentProviderWithTheme virtual-rerender-with-unmount 578 588 10
MakeStyles mount 1958 1960 50000
SpinButton mount 2344 2322 5000

@size-auditor
Copy link

size-auditor bot commented Sep 27, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: a8e81b5296f1551e74010c1d2ad9d37c6fd48306 (build)

@micahgodbolt micahgodbolt changed the title Bump peer deps to support React 18 Bump react-component peer deps to support React 18 Oct 6, 2022
Copy link
Member

@khmakoto khmakoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have any documentation about special things you need to do so the components work correctly in React 18?

@tudorpopams tudorpopams requested a review from Hotell October 11, 2022 12:11
@micahgodbolt micahgodbolt merged commit 17096b3 into microsoft:master Oct 13, 2022
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
* chore: bump react-component peer deps to support React 18

* change files

* change files

* use correct change type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump react-component peer-deps to support React 18

9 participants