3 ms·
React-Native pattern with delegates is passing down functionHandlers to childComponents that would trigger them. Except Objective-C (and Swift) had protocol co
by seivan 11y ago
React-Native pattern with delegates is passing down functionHandlers to childComponents that would trigger them.
Except Objective-C (and Swift) had protocol conformance.
Though come to think of it TypeScript allows you define an interface for a Component, one of those attributes could be a function.
Not really getting away from it. ;-)