3 ms·
Same reasons JS has modules that don't export everything, and for the same reason that React reinvented OOP under a different syntax with function components. E
by mike_hearn 2y ago
Same reasons JS has modules that don't export everything, and for the same reason that React reinvented OOP under a different syntax with function components. Encapsulation, API design, runtimes and IDEs all work a lot better if the tools are aware of the link between the data and the code that's manipulating it.