Results 138 comments of Brian Kim

@ryhinchey Does this plugin automatically insert an `import {createElement} from "@bikeshaving/crank";`? I like the explicitness of having to import createElement yourself. Saw this error and was puzzled for a second:...

If there was logic which checked if it didn’t exist and imported it I wouldn’t mind that either!

I appreciate the enthusiasm and thoughtfulness of this issue. And I unironically enjoyed pulling down your pull request and looking at the Crank.js repository spread out into all those files....

I definitely thought about passing context in as an argument rather than a function, so you’re in good company. I decided against it for the following reasons: 1. Generator functions...

@migueloller > what's the plan for testing? Will there be some utilities provided by Crank to test components? If so, I guess these utilities could provide the context, either as...

@BrandonNoad I’ve used `ctx` cuz that’s what I used to do in canvas programming as in: ```ts const ctx = this; ``` > For generator components, you may also want...

@wmadden > I agree it would be good to avoid using `this` in general. I discourage it in my teams wherever possible because it's impossible to tell by reading the...

@eferte You’re in good company! This has been suggested several times already and I’ve considered it. Ultimately, I decided against it because there’s something beautiful about sync function components being...

Yes the You Don’t JS is a really good resource! I’ve also recommended https://davidwalsh.name/es6-generators which is also by Getify, but perhaps slightly more beginner friendly.

I wrote a list in the reddit post on r/javascript which I’ll copy over here: 1. More docs: I still haven’t documented a couple features like the Crank equivalent for...