How to wrap the Gutenberg editor with a custom React component?

Question

Motivation

For the custom Gutenberg blocks I’m creating, I’d like to use React components from a third party UI library. These components depend on a shared ContextProvider being available somewhere high up in the component tree.

Problem

How to wrap the Gutenberg editor (within WordPress, if that makes any difference) within a ContextProvider, or any other component for that matter?

0
Willem-Aart 2 months 0 Answers 9 views 0

Leave an answer