React moved away from OOP quite a while ago. It's mostly pure functions and closures that return what are functionally records.
When the JS tuple/record proposal is finally implemented, I suspect they go even farther in that direction.
Of course, you could argue that closures are simply objects with one method (or that objects are a poor man's closures), but that's a rather pedantic line of discussion.
When the JS tuple/record proposal is finally implemented, I suspect they go even farther in that direction.
Of course, you could argue that closures are simply objects with one method (or that objects are a poor man's closures), but that's a rather pedantic line of discussion.