You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how the JS code is compiled, Gutenberg React code does not start with the standard import React from 'react';.
Hooks and utils that come from the react package would instead come from @wordpress/element.
For example, we'll need to refactor code from this:
importReact,{useRef}from'react'
to:
import{useRef}from'@wordpress/element';
This is something we'll either do as a final step within this @itsjonq/g2 repo before migration.
Or, this is something we'll refactor when the code lands within Gutenberg.
The text was updated successfully, but these errors were encountered:
Due to how the JS code is compiled, Gutenberg React code does not start with the standard
import React from 'react';
.Hooks and utils that come from the
react
package would instead come from@wordpress/element
.For example, we'll need to refactor code from this:
to:
This is something we'll either do as a final step within this
@itsjonq/g2
repo before migration.Or, this is something we'll refactor when the code lands within Gutenberg.
The text was updated successfully, but these errors were encountered: