src
directory matching the path of the file you want to override. For example, if you want to override the theme file in component/ProductCard/ProductCard.component.js
, create a file with the same path in your theme's source directory, src
:Component/ProductCard/Component/ProductCard.component
will resolve to your newly-created file. Indeed, if you check the product list page, you will see the updated component: