tornqvist / yeet

Teeny-weeny front end framework
24 stars 1 forks source link

Interactive example via online editor #3

Open achou11 opened 2 years ago

achou11 commented 2 years ago

Would love to play around with yeet in something like CodeSandbox. I tried to set it up but didn't have much luck. At a minimum, a JS example would be great to have (although personally would also like there to be a TS example as well)

tornqvist commented 2 years ago

That's not a bad idea! As I mentioned in #4, I have a rewrite in the works and as soon as it's a bit more stable I'll be happy to set up a sandbox. I'm not very well versed in TS though and would really appreciate some help on that part. For the curried Component constructor I found it especially hard to declare types.

Also, there are examples in the examples folder.

achou11 commented 2 years ago

awesome! and yeah I'm honestly not the best with TS when it comes to configuration and declaring super complex types, but happy to try my best with it (and hopefully learn from it) when you're ready!

yeah I saw the examples but was hoping for something closer to a dev env where you're importing yeet as a dep and all too, to get a "real feel" for how to scaffold a minimal project. a bit nitpicky I know 😅

tornqvist commented 2 years ago

Ohh, definitely! An interactive environment without having to clone the repo or setup node would be great!

achou11 commented 1 year ago

I'm not very well versed in TS though and would really appreciate some help on that part. For the curried Component constructor I found it especially hard to declare types

been playing around with trying to define this and wow it's hard 😅 especially finding it difficult to figure out the right incantations to get TS to understand that a store may add/update properties on the local state object. tbh not sure it's even possible...