GSX from ghost-lang #4
davedbase
started this conversation in
Show and tell
Replies: 1 comment
-
This is a weird version of Aster! const MyComponent = (props) => {
const {prop, items} = props
<OtherComponent prop={prop} bar={true} >
const target = "world"
<h1>hello {target}</h1>
<ul>
for (const item of items) {
<li key={item.id} }>{item.name}</li>
}
</ul>
</OtherComponent>
} I've been advocating for Aster forever, I think that this kind of syntax is the natural progression of JSX and is by far the most valuable syntax we can implement and the one that will improve DX the most. It might be a bit tricky to implement though with how Solid works, I'm not sure.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an interesting package suggested by @mlrawlings on Discord: https://github.com/jamiebuilds/ghost-lang#elements-gsx
Beta Was this translation helpful? Give feedback.
All reactions