Sergey Samokhov

Results 27 comments of Sergey Samokhov

> Bindings to custom hooks. Wouldn’t we (the Reason community) rather need more hooks written in Reason? Probably doesn’t matter that much when it comes to effectful hooks, but the...

Thanks a lot! But should this information be more accessible? Then again, it’s available in `src/README.md`, so maybe I just didn’t look well enough.

> Information on how to consume it. Exactly. I have to admit that even after running `esy` I still have a hard time figuring out: 1. What have I just...

What about using something like `tap` (not included in Belt, but standard in a lot of libs)? As in: ```reason open Fn; doSomething() -> tap(Js.log) -> doSomethingElse ->tap(Js.log); ``` Or...

@cristianoc The corresponding eslint rule is simple: if something _from the component/custom hook scope_ is used in a hook callback, that hook should receive it in its dependencies list. Sure,...

Disclaimer: I’m no guru. But as for whether it's an old pattern vs something React-specific, in my understanding, it’s a bit of both. On one hand, the JS closures already...

I was curious if it's possible to repurpose `switch` for this lately. Hopefully, it could also work inline. Because sometimes instead of this: ```res switch value ->someOperation(a) ->someOtherOperation(b, c) {...

> This would be possible with escaped prop names, right? `` Fwiw, it's equally doable for the tags: ``

Sure, there you are. PragmataPro: ![image](https://user-images.githubusercontent.com/3592345/103466875-55fd6f80-4d5a-11eb-92e5-8b4a112f69c7.png) Iosevka: ![image](https://user-images.githubusercontent.com/3592345/103467254-3ec08100-4d5e-11eb-8fae-2b581cfbe694.png) The funny/silly thing is that the VS Code's token inspector reports different scopes for the tokens, and different colors, but in fact,...

A simple solution could be having spaces around `=`, like they do in TypeScript: `lastName = "Smith"`. Then again, the TS crowd doesn't usually use something like `lastName?: string =...