You could try applying The Elm Architecture [1]. It&#x27;s developed for the Elm programming language [2], but I&#x27;ve seen more than one framework outside of the Elm ecosystem cite it as inspiration for their structure.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;evancz&#x2F;elm-architecture-tutorial&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;evancz&#x2F;elm-architecture-tutorial&#x2F;</a>
[2] <a href="http:&#x2F;&#x2F;elm-lang.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;elm-lang.org&#x2F;</a>