[ANN] New module function page
“Module Function” is so much better of a name, for those coming from more of a non FP background. Btw: Don’t try to write the word Module Function without backticks here Module Function Module...
View Article[ANN] New module function page
They can be complicated to use, and I find them helpful when writing bindings to existing JS libraries, but if I am just writing ReScript I rarely find a need for them.
View Article[ANN] New module function page
You know how it goes: “With great power…” That said I think most ReScript devs have a KISS mindset anyway and use module functions sparingly, but if any new users stumble upon this post, they will get...
View ArticleUsing Rescript with Preact?
Would you be able to share a pre-configured deno-preact-fresh-rescript application starter on github?
View ArticleUsing Rescript with Preact?
It’s on my list! I’ll post here once I can get something cleaned up.
View ArticleQuestion about variables in module behavior
tsnobip: module MyModule = struct let state = ref([]) let make (foo: string) = state := foo :: !state; state end let a1 = MyModule.make "a";; let a2 = MyModule.make "b";; Printf.printf "a1 = a2 ? %b"...
View ArticleNew operator for BigInt support
Late but here’s the answer github.com/rescript-lang/rescript Unified operators rescript-lang:master ← cometkim:generic-infix opened 01:50AM - 28 Sep 24 UTC cometkim +495 -115 Trying to solve #6477,...
View ArticleUniversal React in OCaml Talk if anyone is interested
Universal React in OCaml - David Sancho Moreno - FUN OCaml 2024
View ArticleExperimentation with simplifying pipe autocompletion
There’s some exciting experimentation going on in the editor tooling to make pipe completion more useful. The PR description is slightly out of date (more things are actually covered in the PR), but...
View ArticleExperimentation with simplifying pipe autocompletion
This looks great! Anything that makes functions more discoverable is a great addition to editor tooling.
View ArticleUsing Rescript with Preact?
I pushed up some Fresh bindings to NPM and converted the starter Fresh app to ReScript: GitHub - jderochervlk/rescript-fresh-example: An example application using @jvlk/rescript-fresh I’m going to...
View ArticleReact setState callback in loop
Is this possible? I’m trying to deal cards from an array to start a game, but everything I try is just dealing the first card over and over again. React batches the updates, so the array is changed...
View ArticleReact setState callback in loop
Can you maybe come up with a minimal repro ideally on the playground?
View Article[ANN] rescript-vitest 2.0 - uncurried mode, explicit bindings, etc
GitHub Release v2.0.0 · cometkim/rescript-vitest What's Changed Full Changelog: v1.5.0...v2.0.0 Context bindings You should now bind test context explicitly on expect / assertions / hasAssertions...
View ArticleReScript-HeadlessUI bindings release
Hey everyone! Just wanted to announce my HeadlessUI react bindings package rescript-headlessui that was recently cleaned up enough to publish. I used this in my previous job and have seen a handful of...
View ArticleExperimentation with simplifying pipe autocompletion
I tried it in my monorepo and it works really well! Great job!
View ArticleReScript-HeadlessUI bindings release
Very cool! We definitely need more of those bindings to all kinds of JS libraries. Thank you for your service!
View ArticleAwesome-rescript
Hi folks, if you have something to share about ReScript, please consider adding a PR to GitHub - rescript-lang/awesome-rescript: A collection of materials about the ReScript programming language and...
View ArticleReact setState callback in loop
You should call setState after the react rendered done each time in the loop. Here is the example. @react.component let make = () => { let (state, setState) = React.useState(_ => 1) let sleep =...
View Article[ANN] rescript-vitest 2.0 - uncurried mode, explicit bindings, etc
Thank you for this new version! At work, we’ve developed our own bindings, which are heavily inspired by your rescript-vitest. In my team, some developers come from a TypeScript background and are...
View Article