[wp-trac] [WordPress Trac] #50991: React Loading
WordPress Trac
noreply at wordpress.org
Mon Aug 17 16:54:20 UTC 2020
#50991: React Loading
--------------------------------+-------------------------
Reporter: bianquijulian | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: External Libraries | Version: 5.4.2
Severity: normal | Resolution: invalid
Keywords: | Focuses: javascript
--------------------------------+-------------------------
Changes (by desrosj):
* status: reopened => closed
* resolution: => invalid
* component: General => External Libraries
Comment:
`invalid` is an [https://make.wordpress.org/core/2020/06/24/proposal-
rename-invalid-worksforme-and-wontfix-ticket-resolutions/ unfortunately
named ticket resolution that includes a handful of scenarios], including
tickets that are actually support requests, and there is nothing that can
be done.
@bianquijulian is asking about how to "implement react on the front end
of a site" without having to load everything from a CDN (specifically
mentioning React, ReactDOM and Babel), and using the same React components
as the block editor.
As I interpret this request, the desire is to load React, ReactDOM and
Babel on the front end, which is not an enhancement suggestion. This can
be accomplished using `wp_enqueue_script( 'react-dom' )` (which loads
React as a dependency). Babel is not packaged with Core because it is a
code compiler and should not be loaded on the front end of sites.
If this is not what your question is @bianquijulian then feel free to
provide more information. The block editor has been used on the front-end
in many other projects by enqueuing the necessary packages. So I'm not
sure specifically what would not be possible here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50991#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list