Comments on: Using React For WordPress Gutenberg Development https://torquemag.io/2018/10/using-react-for-wordpress-gutenberg-development/ All the Word that's fit to Press Tue, 15 Jun 2021 18:55:32 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Rick https://torquemag.io/2018/10/using-react-for-wordpress-gutenberg-development/#comment-371851 Tue, 16 Apr 2019 15:03:21 +0000 https://torquemag.io/?p=85349#comment-371851 Just a heads-up: I received the following React error when trying to execute the 3.js script:

input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.

I believe it’s caused by trying to pass a value for a child (line 23).

]]>
By: Josh Pollock https://torquemag.io/2018/10/using-react-for-wordpress-gutenberg-development/#comment-325031 Mon, 05 Nov 2018 01:49:03 +0000 https://torquemag.io/?p=85349#comment-325031 In reply to Konrad.

Editor only. Gutenberg packages are registered with wp_enqueue_script() as wp-package-name. So, wgen you register this script, add wp-element as a dependencies for it.

]]>
By: Konrad https://torquemag.io/2018/10/using-react-for-wordpress-gutenberg-development/#comment-324942 Sun, 04 Nov 2018 16:16:47 +0000 https://torquemag.io/?p=85349#comment-324942 Hello,

I am going to create some WP plugin, not related to Gutenberg at all, but I am thinking about using React in this plugin.

As WP will have React-powered Gutenberg, I wonder how can I use already built-in React library.

I read your article but I want to make sure: in WP 5.0 I will not have to do any wp_enqueue_script for React, yes? wp.createElement will be globally available in front-end and back-end, yes?

]]>