When to use partials vs components vs live view components

we have a task of building a fairly complicated page which can be broken down into sub components. most of the components will be non-interactive in nature, its just fetching a list of items and then displaying it, hardly any user interaction. i’m trying to to figure out what is the best way to build these components, is it as partials or components or liveview components. performance and seo are key to us and takes priority.

For server side interactive components inside an LiveView, use a LiveComponent. In all other cases I recommend a normal component, especially since partials were deprecated in Phoenix 1.7

1 Like