reagent

kokonut 2023-10-04T14:02:10.653959Z

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

wevrem 2023-10-04T14:27:13.617589Z

Use underscore on the outer functions parameters.

πŸ‘ 2
kokonut 2023-10-04T14:34:24.568819Z

thanks.

wevrem 2023-10-04T15:17:10.050949Z

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.

kokonut 2023-10-04T15:19:16.905069Z

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

kokonut 2023-10-05T02:03:10.910329Z

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