Comments (5)
Glad to hear @coderofsalvation @LeviSchuck!
I've tried it out on some small components and experiments, and you're right haha — it's very curryable and it's super easy to create higher-order functions. Even though I created the new design, I haven't explored its full potential.
I just committed the changes in 265252e, definitely one of my larger commits. Feel free to hop on the Slack and I can help you all try it out :)
from moon.
Thanks for the feedback!
The next version will be a bit different than what you'd normally expect from a UI library, and its API will look something like this.
That version will support having any function as a component rather than single file components. You could still make single file components that export one view function however, and I'm still working on solutions for CSS but you'd probably use something like CSS modules.
Since any function could be a component, it would support something similar to what you showed above :)
from moon.
from moon.
Oh definitely excited for the next api
from moon.
Let me know what you think — I'm closing this for now because I think it can be achieved through Promises and returning an intermediate loading state inside a component function.
from moon.
Related Issues (20)
- linking of mvl external file HOT 8
- Import libraries to use in components HOT 10
- Update Example HOT 5
- onCreate() doesn't have access to "this" HOT 7
- Q: Pass data to component? HOT 2
- Moon v1 Roadmap HOT 33
- is beta 3 production ready? HOT 2
- Common Editor Support for Syntax HOT 5
- Some attributes have to be set by attribute and not by DOM HOT 3
- Moon compiler does not apply DOM event listeners or attributes to created element by for HOT 4
- ubuntu 16 fasnetmoon HOT 2
- use moon in browser HOT 8
- How to apply DRY principles in example code HOT 3
- Any thoughts on hydrating data with SSR? HOT 3
- Fix environment variables on Windows HOT 1
- 没问题,只是开一下而已! HOT 2
- Just trying example - syntax error HOT 5
- How to reset recursive time driver HOT 3
- Is this project active or dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moon.