Re:Responsible JavaScript: Part I
by viklove on Monday April 15, 2019 @10:59AM
(#19665797)
That's just as shit. You need to build an API layer and a service/utility layer. These should be completely separated from React-land. Ideally you should be able to change UI frameworks without altering or moving any of your business logic.
[ Parent
| on HN ]
Re:Responsible JavaScript: Part I
by parthdesai on Monday April 15, 2019 @11:05AM
(#19665846)
>Ideally you should be able to change UI frameworks without altering or moving any of your business logic.
That's just as shit imo, adding unnecessary complexity for the sake of adding it. If you are choosing a framework, you are betting on it, why complicate things. Might as well write in Vanilla JS at that point.