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

Feature Request: Renaming JSX components

Hey, JSX components are defined by using a make function, labeled arguments and optional a @jsx.component decorator. The way I work with components (also in TypeScript) is by defining a props record...

View Article


Feature Request: Named JSX components

I’m not sure what’s the issue here, you’re talking about renaming JSX components in the title but you don’t mention it in your post later. If you use props records then you don’t need decorators, why...

View Article


Image may be NSFW.
Clik here to view.

Feature Request: Named JSX components

The problem is stated in the docs as well: Handwritten Components You don’t need to use the @react.component decorator to write components that can be used in JSX. Instead you can write the make...

View Article

Lit element or Using class components

Does rescript have better tools to express this now after v11.1?

View Article

Lit element or Using class components

we now have tagged template functions in rescript v11.1. But we still have no semantics around classes and I don’t think we have any plans for that. The best solution likely to follow DZakh’s advice,...

View Article


Image may be NSFW.
Clik here to view.

Feature Request: Named JSX components

oh if it’s just a matter of how the function is called, you can choose whatever you want and just add a make function that points to the function name you’ve chosen, I think it does the trick: module...

View Article

Feature Request: Named JSX components

Ah, good advice. Thanks.

View Article

Image may be NSFW.
Clik here to view.

Feature Request: Named JSX components

And by this, you can also rename it to something uppercase if you want, using an escaped identifier: module WithRecord = { type props = {name: string} let \"WithRecord\" = props => {...

View Article


Autoformat breaks compilation

Take the following element as an example. <img src="https://i.ibb.co/6WW5vVC/shiptest.jpg" alt={"alt"} draggable=false style={ReactDOM.Style.make(~width="100%", ~height="100%", ())} loading=#"lazy"...

View Article


Autoformat breaks compilation

In V11 this should not autoformat, since lazy is still a reserved keyword there, but will be only a plain function in V12. The VSCode extension already ships with a V12 formatter for testing purposes...

View Article

Image may be NSFW.
Clik here to view.

Give your feedback about rescript-webapi!

I’ve just seen this thread and find GitHub - rescript-lang/experimental-rescript-webapi: Experimental successor to rescript-webapi 's approach super interesting. Bravo @nojaf At my work, we were...

View Article

Give your feedback about rescript-webapi!

Hi Leo, Thanks for the feedback! I can’t answer anything official but here are some of my thoughts: @zth is trying to tackle completion @z-th.bsky.social on Bluesky Dom.* can hopefully be deprecated....

View Article

Give your feedback about rescript-webapi!

We’re actively exploring how to make the DX a lot better. Some promising ideas and experimentation so far! The linked editor experiment being one of them.

View Article


Image may be NSFW.
Clik here to view.

[ANN] rescript-rest - RPC-like client, contract, and server implementation...

ReScript Rest V1 has been released and this is the best tool now to build REST API and consume them on the client https://x.com/dzakh_dev/status/1854802073914601838 In the version: Better Fastify...

View Article

Give your feedback about rescript-webapi!

Early usage of the new bindings: Use new webapi by nojaf · Pull Request #1 · nojaf/my-pkmn-rescript-app · GitHub It’s quite minimal and doesn’t provide much information, but I’m liking it so far.

View Article


Autoformat breaks compilation

Wow! Thank you! rescript.settings.platformPath is what fixed this on my machine.

View Article

Autoformat breaks compilation

We’re going to specialize a few things for v12 and editor tooling anyway, so I think we might be best off reverting the v12 parser/printer to a v11 one. This would fix this issue too, without needing...

View Article


Give your feedback about rescript-webapi!

Hello, everyone! A first version of the new bindings has been published to npm: @rescript/webapi. You can find early documentation here: ReScript WebAPI Documentation. The key thing to do now is to...

View Article

[ANN] Type safe PostgreSQL in ReScript through pgtyped-rescript

I know this post is old, but I’m glad I found it. I was actively searching for something like this and had a really hard time finding it! Do we have any resources/docs available that point out stable,...

View Article

[ANN] Type safe PostgreSQL in ReScript through pgtyped-rescript

Yeah, this is definitely something we should look into. Maybe we should have a sort of community blog? The big thing here is to get search engines to pick up the libs we have and their usages. Might...

View Article
Browsing all 1794 articles
Browse latest View live