Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
As mentioned previously, with the example of the composite clock built with MVC pattern from the initial article as a baseline, for each lightweight trial, I would rebuild the same example module with it and review how good it is in comparison with the baseline.
And for view components, there are AnalogueView.ts for the analogue clock, DigitalView.ts for the digital clock, and CompositeView.ts as a glue. Another noticeable tip is, the default practice of creating a store in Zustand only assigns the initial state statically on its creation but not dynamically on a view component initialization, so I would follow the official guide to use a React context for assigning the initial state dynamically on a view component initialization when needed.