Getting a custom Gutenberg component’s state from outside that component
To do so you need to use a redux store. To register your own you can follow the steps in the documentation. Here is the minimum that should achieve what you are looking for. First, lets give the “shape” of the store in the initial state object: const initial_state = { my_control: { value: “” … Read more