Fork me on GitHub
#announcements
<
2019-07-18
>
favila00:07:53

Crinkle: A CLJS React v16.8+ un-wrapper. Use any normal one-arg function for rendering, even if its arg is a CLJS data structure (no wrapping of props needed). Also provides hooks to "memoize" values across render invocations using CLJS value equality. https://github.com/favila/crinkle

parens 8
❤️ 4
dominicm12:07:04

this is fantastic, I like your approach to converting props very much

dominicm12:07:05

looking at the approach, I imagine this is the best speed trade-off I've seen so far.

favila14:07:00

Thanks! It is a bit risky because it relies on some react internals, but I really just wanted raw props

favila14:07:55

I also discovered later that the prop needs to be at least typeof object. I used a function as a prop once and it worked but react logged a warning to console

favila14:07:31

Also for some reason the Clojars badge is reporting 1.1.0 as the latest version. It’s not, 2.0.0 is

favila14:07:48

This is just a short list of housekeeping stuff I haven’t taken care of yet

dominicm20:07:55

ah, I hadn't noticed the risk yet 😛 I was just referring to the macro where you detect that it's a map literal, or do an optimized-looking shallow conversion. It's quite neat 🙂

favila20:07:10

Ah ok, that stuff is for the RE macro; CE doesn’t inspect the prop at all

genmeblog15:07:23

[statistics/data science] New fresh library! Fit you data to a distribution. Inference, MLE, QME and MGE methods (+ bootstrap) are supported. State: WIP/alpha. https://github.com/generateme/fitdistr

👍 8
borkdude20:07:03

https://github.com/borkdude/jet Transform JSON into EDN into Transit and vice versa. Provided as binary CLI tool, but also invokable as a CLI tool from the JVM.

👏 52
🎉 8
🛩️ 4