I see two ways for using multiple contexts in react class components.
1. Using a parent component
2. Using a higher order component.
I have explained how to use them in the video with a basic react sample. In the video, it is also explains using contexts in functional components, class components, multiple contexts in functional/class components, higher order components etc.
If you think the video is useful, please like, share and subscribe to my channel. Thanks