6ff0463f24
* chore: remove repetitive words Signed-off-by: ianlv <sunlvyun@outlook.com> * Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce --------- Signed-off-by: ianlv <sunlvyun@outlook.com> Co-authored-by: github-actions <github-actions@github.com> |
||
---|---|---|
.. | ||
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.