2 ms·
Over the years my programming style has changed. I suspect it will continue to change in the future but for now I’m writing my own TypeScript code in a similar
by tyleo 7y ago
Over the years my programming style has changed. I suspect it will continue to change in the future but for now I’m writing my own TypeScript code in a similar style. I tend to use TypeScript interfaces like C structs and write free functions that use them as the first argument. I find that this style works happily with the React hooks api.