react

"mulling over state management stuff"
Aron 2020-06-20T09:21:02.399400Z

interesting read https://dev.to/bytebodger/default-props-in-react-typescript-2o5o it's from this issue that I have been following: https://github.com/reactjs/rfcs/pull/107#issuecomment-646795166

dominicm 2020-06-20T09:24:03.400700Z

Not read yet, but if key was separate from props, then you can just pass around clojurescript data structures as the props. No conversions needed.

dominicm 2020-06-20T09:24:13.401100Z

The crinkle library already does this under the hood.

Aron 2020-06-20T09:25:20.401400Z

crinkle library?

Aron 2020-06-20T09:25:37.401600Z

https://github.com/favila/crinkle found it

lilactown 2020-06-20T16:07:49.402200Z

I believe there is a newer JSX API that does separate the key from the props object you pass in

lilactown 2020-06-20T16:08:00.402600Z

I don't know what it does under the hood, if it merges things together or not

lilactown 2020-06-20T16:12:02.402800Z

https://github.com/reactjs/rfcs/pull/107

lilactown 2020-06-20T16:12:24.403200Z

oh it was linked above

dominicm 2020-06-20T16:30:26.403800Z

@lilactown will be great for performance in helix

lilactown 2020-06-20T16:31:27.404300Z

yeah, we might be able to get rid of the whole props rewriting bits

lilactown 2020-06-20T16:31:29.404500Z

maybe

lilactown 2020-06-20T16:32:10.405200Z

at the least it will mean that we can do less work preventing apply

dominicm 2020-06-20T16:39:45.405500Z

Yeah, that'd be awesome.

lilactown 2020-06-20T16:40:34.405800Z

luv2rmcode

lilactown 2020-06-20T16:44:35.406100Z

I just keep wishing that map construction was faster