4 ms·
> I have quite a few components in each of my projects that do nothing other than call lifecylcle methods (they render `props.children`) I have a few of those
by wongarsu 8y ago
> I have quite a few components in each of my projects that do nothing other than call lifecylcle methods (they render `props.children`)
I have a few of those too, but I feel like ES7 decorators already solve this problem quite well (e.g. [1]). But I guess hook will generate better code for prepack than decorators will.
1: https://medium.com/@jihdeh/es7-decorators-in-reactjs-22f701a678cd https://medium.com/@jihdeh/es7-decorators-in-reactjs-22f701a...