juniorClean Architecture
What is the purpose of a Presenter?
Updated Apr 28, 2026
Short answer
A Presenter formats the data returned from a Use Case into a format suitable for the UI.
Deep explanation
The Use Case returns data in a way that makes sense for the business logic. The Presenter takes that data and transforms it for the View. For example, it might convert a Date object into a '2 hours ago' string or format a number as currency.
Real-world example
Taking a raw price value of 100.5 and presenting it as '$100.50' in the UI.
Common mistakes
- Putting formatting logic inside the Use Case.
Follow-up questions
- Does the Presenter know about the Controller?