Use a Render Prop!
Michael Jackson
20K60

Excellent article ☺ Could you please explain the difference between HOC vs decorator design pattern? Seems they are just the same but I am not a React expert to confirm it.

Like what you read? Give Samitha Fernando a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.