woocommerce/plugins/woocommerce-blocks/assets/js/base
Thomas Roberts 255a45911c
Update shipping and payment radio controls to use borders on selected items (#46150)
2024-04-10 02:54:05 -07:00
..
components Update shipping and payment radio controls to use borders on selected items (#46150) 2024-04-10 02:54:05 -07:00
context Validate and present custom error for not in allowed emails coupons (#43872) 2024-03-20 10:19:06 +00: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 Use state name in Checkout block address card (#45799) 2024-03-22 15:14:14 +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.