Fork me on GitHub
#reagent
<
2023-10-04
>
kokonut14:10:10

hi, when I write reagent form-2 function, it seems kondo complains about it for unused-binding-content. For example, the example from the official document looks like this on my emacs with kondo. Is there any way to solve this? Or am I writing form-2 function in a wrong way. https://github.com/reagent-project/reagent/blob/master/doc/CreatingReagentComponents.md#form-2--a-function-returning-a-function

wevrem14:10:13

Use underscore on the outer functions parameters.

👍 2
wevrem15:10:10

An aside comment: I went to go look for an example in the three projects I am currently working on, and realized that I don’t have very many (any?) form-2 components that serve as a good example. I’ve been using r/with-let a lot.

kokonut15:10:16

Interesting. So do you use with-let for (in the level of fn) local state?

kokonut02:10:10

This is very interesting. I have only know the official form-2 for enabling local states.