tubeshowcase●1,673,521 videos♡ My collection 0
← Learn to Code

Learn to Code15:47

Fluent UI React Insights: APIs in v9. Slots, JSX children & triggers

Microsoft Developer ↗

From the creator

Fluent UI Insights is a series that describes the design and decisions behind the Fluent UI design system. In the fourth episode, members of the Fluent UI team explain implementation details and context behind APis in Fluent UI React v9: slots, JSX children and triggers. 🔗 Links: https://github.com/microsoft/griffel https://github.com/microsoft/fluentui https://react.fluentui.dev/ 📚 Chapters: 00:00 – Introduction 00:22 – Intention and motivation for slots 01:53 – Slots v1 in Semantic UI React 03:33 – Slots v2 in Stardust UI React 04:42 – Slots v3 in Fluent UI React v9 06:04 – Component groups: collections and elements 06:50 – Collections API in Semantic UI React 07:45 – JSX children to define components 08:11 – Issues with React Context and useContextSelector 09:03 – Limitations of JSX approach 10:43 – Connection between a host component and children 11:33 – Why triggers API is needed? 12:35 – Triggers API journey 13:24 – Triggers API in Fluent UI React v9 14:36 – Limitations of Triggers API 14:56 – Summary of the episode 15:27 – Bloopers 💡 References: #1 Conformance tests for slots in Fluent UI React v9 https://github.com/Semantic-Org/Semantic-UI-React/pull/530 #2 RFC for useContextSelector https://github.com/reactjs/rfcs/pull/119 #3 useContextSelector implementation in user-land https://github.com/dai-shi/use-context-selector #4 Fluent UI React v9 documentation https://react.fluentui.dev

Published 2022-11-28 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code