Check out example codes for "remove upsell products woocommerce". It will help you in understanding the concepts better.

Code Example 1

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );

Learn ReactJs, React Native from akashmittal.com