DEV Community

Discussion on: A dive into testing Styled Components and React HOCs

Collapse
alex_escalante profile image
Alex Escalante Author

I just added a note on generalizing the diving using recursion.

Collapse
breeny profile image
Andrew Breen 👨‍💻

Potential enhancement to the dd function as well would be a graceful failure (I'm sure someone at some point would be confused as to why w is undefined in a recursive function).

Really interesting solution though, love it!

Collapse
alex_escalante profile image
Alex Escalante Author

You're very right!