Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 1751 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

[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 Article

Using Rescript with Preact?

Would you be able to share a pre-configured deno-preact-fresh-rescript application starter on github?

View Article

Using Rescript with Preact?

It’s on my list! I’ll post here once I can get something cleaned up.

View Article


Image may be NSFW.
Clik here to view.

Question 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 Article

Image may be NSFW.
Clik here to view.

New 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 Article

Universal React in OCaml Talk if anyone is interested

Universal React in OCaml - David Sancho Moreno - FUN OCaml 2024

View Article


Image may be NSFW.
Clik here to view.

Experimentation 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 Article


Experimentation with simplifying pipe autocompletion

This looks great! Anything that makes functions more discoverable is a great addition to editor tooling.

View Article

Using 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 Article

React 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 Article

React setState callback in loop

Can you maybe come up with a minimal repro ideally on the playground?

View Article


Image may be NSFW.
Clik here to view.

[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 Article

ReScript-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 Article


Experimentation with simplifying pipe autocompletion

I tried it in my monorepo and it works really well! Great job!

View Article

ReScript-HeadlessUI bindings release

Very cool! We definitely need more of those bindings to all kinds of JS libraries. Thank you for your service!

View Article


Awesome-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 Article

React 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

Image may be NSFW.
Clik here to view.

[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
Browsing all 1751 articles
Browse latest View live