5 ms·
> But isn't it a little fake? What example are you looking at? I think you maybe don't understand how isomorphic apps work... Take form validation: 1) Your "f
by morgante 12y ago
> But isn't it a little fake?
What example are you looking at? I think you maybe don't understand how isomorphic apps work...
Take form validation:
1) Your "frontend" code (which runs on both/either client & server) does a quick sanity check, purely for responsiveness.
2) Your API server does actual validation of code.
Of course, your API server isn't running the same code as the client—you can't have the client talking directly to your database, for example. Rather, the idea is that the "frontend" can be rendered on the server & client.