geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/base
2024-02-01 11:54:18 +00:00
..
components first commit 2024-02-01 11:54:18 +00:00
context first commit 2024-02-01 11:54:18 +00:00
hocs first commit 2024-02-01 11:54:18 +00:00
hooks first commit 2024-02-01 11:54:18 +00:00
utils first commit 2024-02-01 11:54:18 +00:00
README.MD first commit 2024-02-01 11:54:18 +00:00

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.