DEV Community


Discussion on: Full-Stack Development Should Be Easier

mvila profile image
Manuel Vila Author

The frontend and the backend are physically separated but from the point of view of the developer, it's like they are a single thing because the frontend can "inherit" some methods from the backend and call them remotely.

I don't get when you say that a frontend shouldn't make any assumption about the backend. The frontend should at least know what is exposed by the backend and how to call it. Conceptually, calling a REST API or a method is no different.

A component is just a class and you are free to compose multiple components in the same way you would compose multiple classes.

Please check out this example for something that goes beyond a small CRUD prototype.