Replies: 6 comments
-
there's a nice overview by @pdfernhout coming from a perspective of using several frameworks. also there are a lot of links at https://github.com/orbitbot/awesome-mithril and https://how-to-mithril.js.org. is that the type of info you're looking for @ejnaren ? |
Beta Was this translation helpful? Give feedback.
-
This also has some of the info you are looking for https://mithril-examples.firebaseapp.com/ |
Beta Was this translation helpful? Give feedback.
-
And not to forget Mithril by Examples, which is perhaps the most comprehensive snippets repo for Mithril.js |
Beta Was this translation helpful? Give feedback.
-
@tbreuss I actually think going forward with any site redesign overhaul and perhaps |
Beta Was this translation helpful? Give feedback.
-
@kevinfiol Thank you 👍 I would hand over the website to the Mithril.js community if there is some interest. Maintaining |
Beta Was this translation helpful? Give feedback.
-
Some ideas of stuff that can use how to/ clarifications. Note some of these are probably demonstrated as part of bigger examples but not specifically highlighted.
|
Beta Was this translation helpful? Give feedback.
-
Is this something you're interested in implementing yourself?
Description
It would be immensely helpful to have a small section of the mithril website show examples of how to do certain common things. Not full application examples or tutorials, but simple cases that could work as a "glossary" of common best practices. Example:
Create elements by looping an array:
Example code
Conditionally include/exclude an element.
Example code
Slots in other frameworks, this is how to do it in Mithril:
Example code
Etc. Etc.
Why
There are a bazillion JavaScript Frameworks. Some are very different from mithril and some are similar. I have tried out me fair share and you always have certain use cases where you need to do X or Y across all the frameworks.
Many aspects of mithril are so Intuit that it just works from reading the getting started page.
Others are not and you are left figuring it out your self or reading long tutorials on everything else in mithril when all you needed to know was how to do X or Y.
In my experience Mithril has the simplicity that many other frameworks lack and coming from React, Riot, Ember, Vue and Svelte it would have been zero threshold entry to mithril if these small examples had just been easy to find on the website.
Possible Implementation
I imagine that a simple page on the website with a collection of these common cases could be perfect. Maybe under the introduction page.
Alternatively a few more headlines the introduction page could also solve it.
Or maybe it could just be a "coming from other frameworks" section?
Specifically for people who know all about setting up this build tools and everything but want to know the best practices for using Mithril specific csses.
Beta Was this translation helpful? Give feedback.
All reactions