|
|
|
|
|
by sethc2
1926 days ago
|
|
I find classes in JavaScript just more tedious, and they’re really just syntactical sugar on top of a function anyways.
Working in react I’m always making things immutable, and I generally use typescript, and classes to me are just more painful to write then a function whose parameters act effectively as constructor arguments and the return statement which is the classes public API. |
|