reagent icon indicating copy to clipboard operation
reagent copied to clipboard

Test different ways to declare fn should be used as functional component

Open Deraen opened this issue 4 years ago • 0 comments

I was interested if :f> could be replaced with a way to mark the functions using metadata (or something) so that they are used as functional components.

But metadata from defn symbol and defn attr-map are stored to the var metadata, so it is not accessible to Reagent in runtime unless the functional was referred using the var.

Probably it is just best to make functional components the default eventually.

Deraen avatar Dec 19 '21 13:12 Deraen