setState with Gutenburg
-
I’m trying to create a series of custom nested blocks in such a way that clicking a button on the parent block would trigger a height change on its child block.
On a typical React project this would be done using React.Component and state to decide which parent block got triggered, which would then determine which child block changes height, but it doesn’t seem that the blocks support initializing state or setState.
Is there another way to achieve this using Gutenburg functions?
(The site is currently local, but I want the effect to be the same as the page in the link)
The page I need help with: [log in to see the link]
- The topic ‘setState with Gutenburg’ is closed to new replies.