DEV Community

Discussion on: Why is Isomorphic JavaScript not longer talked about?

Collapse
 
avalander profile image
Avalander

Well, it depends on how much isomorphism you expect. Of course you can use libraries like ramda both in the backend and in the frontend, and you probably want to run the same form validations in both places, so that code can be shared as well. Besides that, why would you want to run the same logic in two places? A task seldom needs to be run both in the frontend and in the backend, so why would you need to have the code in both places?

Collapse
 
arobu profile image
Andrei D. Robu

Fair enough, I can see how it can be a spectrum.

The example of doing isomorphic form validation is a very good one.

The other one I had in mind is that after rendering a page on the server-side, we may need to still have some client-side interaction, which may be dependant on some more complex logic and that we don't want to duplicate that between the client and the server side.