Fork me on GitHub
#helix
<
2022-05-14
>
geraldodev12:05:14

@lilactown https://gist.github.com/geraldodev/0333ffe63588a94d98efb8e918dde681 what a pragmatic human you are 🙂 , by using mr Fikes Beans we can for a moment forget that defnc components are receiving js objects. We do not have javascript spread, but the one you provided with ($ macro, :& it's sufficient for one spread usage, as you can see in the code.

👍 1
1
❤️ 1
dominicm14:05:29

I strongly agree. Will is a wonderfully clever human being, and we're lucky to have his work available to us ♥️ Everyone I know who tries helix raves about it.

❤️ 1
lilactown16:05:11

aw shucks you guys 😊

geraldodev21:05:06

My defnc macro just have the :fast-refresh option active. Today I've noticed the https://github.com/lilactown/helix/blob/master/docs/experiments.md#define-as-factory-function . Are you using it ? Could you share your experience with it ? Off the top of my head I can think that if you have many components of your own It could be good, but if you use a lot of js components you are going to call ($ for them, and not for your own stuff. Maybe using $ for all is less error prone ? what do you think.