DEV Community

Discussion on: Create a Wordpress Gutenberg-Block with all React-lifecycle methods in 5 Minutes

Collapse
 
mrstevedev profile image
Steve Pulido

Wow great article. I was trying to do this in my Gutenberg block for like 3 weeks. My problem was that I had my constructor() and other Lifecycle methods outside of the edit:(). Which is correct for React but not within the context of Gutenberg. I couldn't understand what was wrong but this clears it up and makes sense now. Thank you!

Collapse
 
martinkr profile image
Martin Krause

Glad I could help :)