UI
Last updated
Was this helpful?
Last updated
Was this helpful?
From an architectural point of view, the user interface is a client to the public HTTP layer - and mostly talks the language of the HTTP layer.
It is OK to import domain modules into the UI layer (but not others, obviously).
Once GraphQL is introduced into the stack, the graph types might be slightly different from the domain types, causing annoying issues. For this reason, it's best to stick to the graph's language here.
Use a to minimise effort. These can turn graph types into static type definitions for the UI, resulting in end-to-end type safety.
There are many great UI libraries and frameworks today. React is suggested here because it's a and functional solution.
See for examples.