bespoyasov / frontend-clean-architecture

React + TypeScript app built using the clean architecture principles in a more functional way.
https://bespoyasov.me/blog/clean-architecture-on-frontend/
2.35k stars 259 forks source link

Modify: replace useStore hook with adapter #6

Closed yeonuk-hwang closed 2 years ago

yeonuk-hwang commented 2 years ago

In the cookie UI, I found that the store was accessed directly using the useStore rather than through the adapter.

I thought it was right to approach using each adapter rather than directly from an architectural point of view, so I modified it in the direction of approaching using an adapter.

I was very impressed by the article and this repository, and I sincerely thank you for your help.

bespoyasov commented 2 years ago

Oh, right! The component should indeed use the adapters. Somehow I overlooked this when I was preparing the code :–)

Thank you!