{"id":16285620,"date":"2022-12-13T14:59:50","date_gmt":"2022-12-13T14:59:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/adding-plugins-built-with-react-to-wordpress\/"},"modified":"2022-12-13T14:59:50","modified_gmt":"2022-12-13T14:59:50","slug":"adding-plugins-built-with-react-to-wordpress","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/adding-plugins-built-with-react-to-wordpress\/","title":{"rendered":"Adding Plugins Built With React To WordPress"},"content":{"rendered":"<p>I am trying to create custom plugins for WordPress using React. For context, I have been following this video: https:\/\/www.youtube.com\/watch?v=NKqogVcqDHA<\/p>\n<p>Running WordPress locally on XAMPP, I have added two new plugins:<br \/>\n\t&#8211;wp-content<br \/>\n\t &#8212;-plugins<br \/>\n\t&#8212;-+added-plugin-one<br \/>\n\t&#8212;-+added-plugin-two<\/p>\n<p>Each added plugin has the same basic structure \u2013 they are React apps that have been added following the instructions in the video (in the Boilerplate Plugin section).<\/p>\n<p>When I add the plugins and run <code>npm run build<\/code>, I can see them on the Plugins menu on the WordPress Dashboard. I can activate both plugins from this screen as well.<\/p>\n<p>However, when I go to edit a post and try to insert these plugins as blocks,  I only see one of the plugins available. The other plugin and its icon are not displayed in the editor.<\/p>\n<p>I can deactivate either one and see the other one in the post editor, but I would like to see both plugins and be able to use both of them. Is there a reason why I might only be able to use one of them and not both? Thanks for any suggestions.<\/p>\n","protected":false},"template":"","class_list":["post-16285620","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16285620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16285620\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16285620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}