abd41cae11
* Fix bug where is-plain-obj is not transpiled by Jest, update lock. * Update packages. * Mock useSelect for a handful of RichText selectors in test. * Resolve react to single version to avoid invalid hook errors. * Patch trim-html locally to avoid a bug in the released npm source. * Mock out resizeObserver to avoid https://github.com/FezVrasta/react-resize-aware/issues/58 * Don't transpile config package: https://github.com/node-config/node-config/issues/628 |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.