| Post Reply | RetroFed Forum Forum Index » React |
| Author | Message | ||
|---|---|---|---|
|
zamithal
programming.dev
zamithal@programming.dev Joined: 2023-11-03 |
I'm looking to write an HOC that counts and prints to the console the number of elements in the wrapped component. For example:
this should print 1 and then return Foo as is for rendering.
seems to be about the explicit children property and not descendant html elements. How can I achieve this? |
||
| 1 Original | |||
| Post Reply |
Back to top |