I am new to Mithril.js and I am still struggling to find a way to create this simple extension that transforms the drop-down for filtering posts into a tabs control for the desktop screens.
So, what I need is to detect the screen size and based on it return the Select
component's view or my custom TabSelect
component's view on desktop or the default Select
on mobile. Both components use the same logic and properties. Only the HTML code is different. I guess i can do this inside the component's class or when I extend IndexPage
Is this possible? Any idea for an approach? Pulling my hairs out right now
Thanks