Questions tagged [rescript]

ReScript is a language and compiler toolchain for building performant, easy-to-maintain JavaScript and ReactJS applications. It is a strongly typed language with many interoperability features to integrate nicely in existing JavaScript codebases.

Useful resources

78 questions
0
votes
1 answer

How to convert a Js.Dict.t to Js.t in ReScript?

Is there a straight forward way to convert a Js.Dict.t like this one Js.Dict.fromArray([ ("bigKey", Js.Dict.fromArray([("smallKey", "value")])) ]) to Js.t like this one: { "bigKey": { "smallKey": "value" } }
Siraj Kakeh
  • 741
  • 6
  • 20
0
votes
1 answer

Disable react-jsx per file in a ReasonReact project

Is there a way to disable react-jsx transformation in some files of a ReasonReact project? I think the other way around is possible by not adding "reason": { "react-jsx": 3 } to bsconfig.json and by adding @@bs.config({jsx: 3}) to the top of the…
tsnobip
  • 289
  • 2
  • 8
0
votes
1 answer

How to make requests from back-end to another server on user’s localhost

I’ve got a standard client-server set-up with ReScript (ReasonML) on the front-end and a Python server on the back-end. The user is running a separate process on localhost:2000 that I’m connecting to from the browser (UI). I can send requests to…
Peteris
  • 3,548
  • 4
  • 28
  • 44
1 2 3 4 5
6