Yes. HOC and Render Props BOth can handle this situation. I just wanted to convey the idea of the principle. The Implementation is up to the readers :)
--
Software Developer | https://www.mohammadfaisal.dev/
Love podcasts or audiobooks? Learn on the go with our new app.