Title: willdelphia's Replies | WordPress.org

---

# willdelphia

  [  ](https://wordpress.org/support/users/willdelphia/)

 *   [Profile](https://wordpress.org/support/users/willdelphia/)
 *   [Topics Started](https://wordpress.org/support/users/willdelphia/topics/)
 *   [Replies Created](https://wordpress.org/support/users/willdelphia/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/willdelphia/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/willdelphia/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/willdelphia/engagements/)
 *   [Favorites](https://wordpress.org/support/users/willdelphia/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [can you use react plugins in custom block types](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/#post-11173763)
 * [https://wordpress.org/plugins/ace-html-block/](https://wordpress.org/plugins/ace-html-block/)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [can you use react plugins in custom block types](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/#post-11169224)
 * Update: I figured out that gutenberg exposes a unique id already in the props
   object, so that’s cool. But I still have to rely on setTimeout and querySelector
   to initialize the ace editor.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [can you use react plugins in custom block types](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/#post-11168960)
 * [@shazahm1hotmailcom](https://wordpress.org/support/users/shazahm1hotmailcom/)
   so after I made this thread I tried to go about enqueuing the ace source on my
   own, and I came up with a solution that works:
 * [https://github.com/willdelphia/good-html-block](https://github.com/willdelphia/good-html-block)
 * I am still going to try to work out including the react plugin since I think 
   it may handle this more elegantly. Especially because my solution requires assigning
   each instance of the block a random key as an attribute and then querying the
   real dom for that key once it has been printed out by react. I use a setTimeout
   for this and it feels wrong.
    -  This reply was modified 7 years, 5 months ago by [willdelphia](https://wordpress.org/support/users/willdelphia/).
    -  This reply was modified 7 years, 5 months ago by [willdelphia](https://wordpress.org/support/users/willdelphia/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [can you use react plugins in custom block types](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/#post-11168197)
 * [@shazahm1hotmailcom](https://wordpress.org/support/users/shazahm1hotmailcom/)
   Just skimming this article it looks like exactly what I am looking for. They 
   mention the “Module not found: Error: Can’t resolve ‘react'” error that I was
   getting. Thanks for the link.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [can you use react plugins in custom block types](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/can-you-use-react-plugins-in-custom-block-types/#post-11164579)
 * I am only looking to load them in the editor, as part of a (formerly) gutenberg
   block’s edit() output.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to trigger rerender of (gutenberg) block based on boolean variable value?](https://wordpress.org/support/topic/how-to-trigger-rerender-of-gutenberg-block-based-on-boolean-variable-value/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-trigger-rerender-of-gutenberg-block-based-on-boolean-variable-value/#post-11062491)
 * So you’re right about the method storage. But it’s actually the state that I 
   am trying to figure out.
 * In react when you modify the state it triggers a re-render which updates the 
   output HTML (as needed). I am trying to figure out if there is something like
   this in the WP Gutenberg API other than the attributes.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to trigger rerender of (gutenberg) block based on boolean variable value?](https://wordpress.org/support/topic/how-to-trigger-rerender-of-gutenberg-block-based-on-boolean-variable-value/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-to-trigger-rerender-of-gutenberg-block-based-on-boolean-variable-value/#post-11058770)
 * It turns out that the new ACF beta does something very similar to what I am trying
   to achieve. I took a look at their code and it turns out they store their version
   of the `myBoolean` value in the block’s attributes.
 * I had had this thought while thinking on the problem but didn’t want to go down
   that road because it would basically result in extraneous text being added to
   the html comment markup for the block — it really doesn’t have anything to do
   with how the block is rendered on the front end of the site so it seems wrong
   to muck up attribute JSON.
 * Is there another way to achieve this? Or did the ACF team get it right / find
   the only solution?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Block] Block class name](https://wordpress.org/support/topic/block-class-name/)
 *  Plugin Author [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/block-class-name/#post-11040534)
 * So that particular classname is assigned by the Block API based on the name of
   the block which is registered…
 * From the docs:
    [block-api/block-registration](https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-registration/)
 * > The name for a block is a unique string that identifies a block. Names have
   > to be structured as namespace/block-name, where namespace is the name of your
   > plugin or theme.
 * I believe this namespace/block-name convention is so that a given plugin can 
   register many blocks without worrying if they are conflicting with the names 
   of blocks that other plugins might be registering.
 * In this case, the plugin only registers a single block. Magicblock is both the
   name of the plugin (namespace) and the name of the block. That’s why it’s getting
   doubled in the classname.
 * Hope that makes sense.
    -  This reply was modified 7 years, 6 months ago by [willdelphia](https://wordpress.org/support/users/willdelphia/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Converting block and all nested children to HTML block](https://wordpress.org/support/topic/converting-block-and-all-nested-children-to-html-block/)
 *  Thread Starter [willdelphia](https://wordpress.org/support/users/willdelphia/)
 * (@willdelphia)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/converting-block-and-all-nested-children-to-html-block/#post-11013268)
 * [@bpayton](https://wordpress.org/support/users/bpayton/) thanks for the reply.
   Let me know if you succeed in opening an issue.

Viewing 9 replies - 1 through 9 (of 9 total)