Skip to main content
Filter by
Sorted by
Tagged with
4 votes
0 answers
100 views

https://rescript-lang.org/docs/manual/v11.0.0/typescript-integration says The ReScript compiler includes a code generation tool that lets you export ReScript values and types to use in TypeScript, ...
Alexey Romanov's user avatar
0 votes
2 answers
101 views

I'm new to ReScript (previously BuckleScript) and trying to create a basic project template. I'm having trouble setting up unit testing. Here is my current setup: Folder stucture src/Demo.res test/...
Kevin Tonon's user avatar
  • 1,005
1 vote
1 answer
61 views

Forgive the primitiveness of my question. I'm exploring Rescript and I'd like to open my package.json file into a typed datastore. I've made some progress, but I need some direction: @module("fs&...
mtyson's user avatar
  • 8,682
0 votes
1 answer
131 views

When using the % operator I am left with the error "Did you forget a , here?". Is there another keyword for % in ReScript? Js.log(20 % 2) Note: This is a translation of this question for ...
glennsl's user avatar
  • 29.2k
0 votes
1 answer
63 views

From the documentation of ReScript React, I can declare a component like this: module OptionalChildren = { @react.component let make = (~children: option<React.element>=?, ~children2: React....
Harshal Patil's user avatar
0 votes
1 answer
143 views

According to ReScript's documentation, try-catch blocks cannot have a finally clause. My question is twofold: Firstly, what on Earth possessed them? What was the motivation? How does removing this ...
Sod Almighty's user avatar
  • 1,866
0 votes
1 answer
180 views

I have this code for two input fields and a button: I have this code at the end: <Form onFinish={onSubmit2URLs}> <Form.Item name="url1" label="URL 1"> <Input /> &...
Dark Knight's user avatar
0 votes
1 answer
169 views

I have a Rescript react component which contains a form. I am trying to get the FormData when the form is submitted, but I am a bit confused about how to do that. My component: @react.component let ...
Redark's user avatar
  • 183
0 votes
1 answer
266 views

I am trying to write a simple react component in rescript and have a CSS file for the component. I am trying to do this with Webpack. Here is my entire project code Webpack.config.js const path = ...
Knows Not Much's user avatar
0 votes
0 answers
121 views

I am new to using rescript and trying to convert an extension I started writing in typescript into rescript. I cannot figure out how to access the vs code extension api though. Is there a way to ...
Salamander987's user avatar
0 votes
1 answer
238 views

I wrote this code switch (ReactDOM.querySelector("#myapp")) { | Some(myapp) => ReactDOM.createRoot(myapp).render(<MyComponent />) | None => Js.log("we could not find myapp ...
Knows Not Much's user avatar
0 votes
2 answers
195 views

I am reading this tutorial https://www.stackbuilders.com/blog/nonsense-getting-started-with-reason-and-reason-react/. One of the problems I am facing is that api.noopschallenge.com is now dead. I ...
Knows Not Much's user avatar
0 votes
1 answer
47 views

I am trying to create a heap module (and eventually priority queue) implemented with an array. The portion of the heap I have written so far compiles fine: module MinHeap = { type elem type heap = ...
akaphenom's user avatar
  • 6,873
0 votes
1 answer
403 views

I have this JSON file. Using rescript I want to : Read the file. Extract data from the file. Write result in a new file. { "name": "name", "examples": [...
Fer iel's user avatar
  • 23
0 votes
1 answer
48 views

I'm creating a functor for opaque identifiers to allow the type system help catching issues where you're supposed to have an identifier of A, but you're being given an identifier of B. I've already ...
manu's user avatar
  • 3,894

15 30 50 per page
1
2 3 4 5 6