2 ms·
This is what I wanted React hooks to be like. They are a huge hack and it shows every time you need to call on conditionally. But I guess if React never comes a
by felixfbecker 6y ago
This is what I wanted React hooks to be like. They are a huge hack and it shows every time you need to call on conditionally. But I guess if React never comes around to this generator idea I’ll never get to use this, because we rely on many React libraries... Maybe crank could support compatibility with React components somehow?
- mattigames 6y agoWhat would be more likely is to use a codemod[0] to convert react libraries into crank, or close enough that only a few further manual changes are needed. [0] https://github.com/facebook/codemod/blob/master/README.md https://github.com/facebook/codemod/blob/master/README.md