woocommerce/plugins/woocommerce-blocks/assets/js/base
Sam Seay 1eba9c62a8
Add lint config to blocks to lint imports (#43310)
2024-01-08 18:32:15 +13:00
..
components Add lint config to blocks to lint imports (#43310) 2024-01-08 18:32:15 +13:00
context Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
hocs Upgrade webpack to version 5 (https://github.com/woocommerce/woocommerce-blocks/pull/8013) 2023-09-20 17:31:52 -03:00
hooks Fixed Blocks Linting Errors (#42727) 2023-12-12 15:05:20 -08:00
utils Support additional fields in the Contact step for Checkout (#43088) 2024-01-05 18:35:28 +01:00
README.MD Avoid usage of `@wordpress/components` inside base components (https://github.com/woocommerce/woocommerce-blocks/pull/7996) 2023-01-11 17:12:06 +00:00

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.