React Webview Architecture

Architecture patterns for React-based webviews in the vscode-documentdb extension. Use when creating new webview components, modifying existing views (CollectionView, DocumentView), working with state management (Context API), integrating Fluent UI components, handling Monaco Editor or SlickGrid, solving stale closure bugs with refs, or debugging webview rendering issues. Does NOT cover tRPC messaging (see webview-trpc-messaging skill) or accessibility/ARIA (see accessibility-aria-expert skill).

Microsoft Updated 195k repo stars
DocumentDB extension for Visual Studio Code: the Collection View with a query, autocompletion and results in a table

File contents

microsoft/vscode-documentdb commit 9a52ce727d

Frequently asked questions

npx get-skill add microsoft/react-webview-architecture