Closed fibo closed 4 years ago
React hooks are not yet widely adopted but for the purpouse of this project they can be a really good choice.
They simplify code a lot, and can also reduce the bundle size a lot.
See for example this starting point https://github.com/fibo/trunx/commit/a0a1d4bb25a886162b2a152db66ecd9a9d75dbc2
In some cases, using classes is still preferable, for example for Icon and Icon.Svg I prefer the generated definitions using classes.
Icon
Icon.Svg
React hooks are not yet widely adopted but for the purpouse of this project they can be a really good choice.
They simplify code a lot, and can also reduce the bundle size a lot.
See for example this starting point https://github.com/fibo/trunx/commit/a0a1d4bb25a886162b2a152db66ecd9a9d75dbc2