|
|
|
|
|
by williamcotton
4167 days ago
|
|
You're thinking of the wrong boundary. You should definitely have a boundary for your data that is agnostic of the view code. However, a web application is not like an iOS or Android application. It has a server-side that sends pre-rendered view code and it has a client-side that renders view code on the fly. It still makes sense to share the view code between the server and the client and it still allows for a separate data backend. These systems are surprisingly easy to create and maintain with React. In essence three things are supplied to a client. A pre-rendered view, raw data, and the code to turn the raw data in to the pre-rendered view. |
|