I think you have to use redux on class components to use products. Or you can get products from props sent by parent component. I hope it will work for you. Regards.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.