-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore defining UIDL in hyperscript instead of JSON #153
Comments
Hi @vladnicula that's a awesome idea when we consider the use case in which targeted audience as users, but i feel is, if a user is writing something in JSX they can directly write a react component / vue respectively, But when we consider the use case of project this helps a lot. But how many will actually adopt this style of writing a project because they can get the end result in many flavours as a result 🤔 When we consider the use case of wireframes to project export this is amazing the ability to download any flavour of codebase 🌟 Currently we can how about we set few values as default in generators like if the user forget's to mentions type How about we build something like (I am not sure how complex is the process of moving from a Schema to hyperscript 😅 ) |
@JayaKrishnaNamburu I understand your point of view and share the idea that writing tags should not be the only way of writing things, however it's much easier for me to "build" the UIDL JSON by writing tags like the ones mentioned before. I also believe that defaulting some keys in the UIDL is not enough to make the project/document readable. So no no, I don't suggest we move the UIDL schema from JSON Schema Definition to Hyperscript. I'm suggesting we use Hyperscript to build the schema faster and read it easier. It would be an add-on on top of UIDL JSON, opt in, for those who want to write UIDL faster. |
Totally agreed 😄 👍
|
What's wrong with JSON
What's good with hyperscript
Let's compare the declaration of a component
An equivalent JSX like syntax would be:
The text was updated successfully, but these errors were encountered: