React useEffect not work in frontend gutenberg blocks
That’s not how blocks work in Gutenberg. Your block code runs entirely in the block editor, and returns 2 things: Components to display in the editor UI Components that when rendered produce HTML that gets saved to the database That second one is the key part here, the final product is just a string of … Read more