Nov 10, 2022
Thanks for reading and responding Akash. I updated the article to reflect why ReactElement isn't a great choice. As an example, you might expect an array of ReactElement[] as children, but then someone passes a string, and that will throw an error. So I'd recommend a different prop if you need to pass ReactElement or ReactElement[].