• Hi,

    I use the scaffold “@wordpress/create-block” to create the block plugin of wordpress. Then I install the Ant-Design(An enterprise-class UI?design?language and React UI library). Quoting an Ant-Design component in edit.js, it works as expected, I can see the component in editor, but when I quote the Ant-Design component in save.js, I can’t see the component in front-end.

    Who can help me and I want to know why save.js is not work well and whether it can support the UI library like Ant-Design. Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • By default REACT doesn’t run in the front end of WP just in teh editor. save.js just saves the html markup.

    I would think would have to enable your Ant-Design to operate on the frontend which probably requires REACT in the frontend too. I have never tried this.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.