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

[Feedback] Preserve JSX mode

Great! But to confirm - that same code in TS (as in - assign the maybe() call to a variable, do type assertion on that variable, and then use the refined result) would have the same issue, no?

View Article


[Feedback] Preserve JSX mode

Yes that would be problematic too. For these cases, solidjs provides the createMemo function that can be used to create a derived signal that keeps reactivity. You can theoretically do hat in ReScript...

View Article


[Feedback] Preserve JSX mode

Just out of curiosity, could you show an example of ReScript vs TS code where this is the case (much harder to spot the problem in ReScript vs TS)? Would be interesting to see if we can do something...

View Article

[Feedback] Preserve JSX mode

Unlike React, Solid’s component functions only execute once on creation. Reactivity is done through a tracking context: const [count, setCount] = createSignal(0) <span>{count()}</span> By...

View Article

[Feedback] Preserve JSX mode

Right, thanks, and I follow all of that. My question is about contrasting TS and ReScript code, and specifically where the ReScript code is much less clear than the equivalent TS code. I’d like to see...

View Article


[Feedback] Preserve JSX mode

Ah got it. Solid provides a <Show> component that will act as a guard against truthy values in TS: <div> <Show when={maybe()}> {m => <div>m.foo</div>} </Show>...

View Article

Access to React's named Fragment element?

Hi, I want to make a fragment but I want to pass it a key, <Fragment key={k}> ... </Fragment> I can make a fragment with <>...</> but then I can’t give it any props. How can...

View Article

[Feedback] Preserve JSX mode

Right, thanks! But this would look identical in ReScript, no? We could also bind to <Show /> in the same way?

View Article


Image may be NSFW.
Clik here to view.

Access to React's named Fragment element?

Sure you can: <React.Fragment key={k}> ... </React.Fragment>

View Article


[Feedback] Preserve JSX mode

When working with SolidJS, you always have to keep the basic reactivity concepts in mind, the interactions between signals, subscribers and tracking scope. Signals provide getter and setter functions...

View Article

[Feedback] Preserve JSX mode

Thank you for the thorough write up! It would be interesting to think about whether there’s anything additional we can do to make the clearer/easier to work with. I look forward to seeing how things...

View Article

Tilia approaching 2.0 release, feedback welcome

Your website “todoapp” links are not working (404)

View Article

[Feedback] Preserve JSX mode

While updating the bindigs to v12, I ran into another complication. SolidJS uses slightly different DOM attributes. For example in SolidJS class is allowed, and there are also special ones like...

View Article


[Feedback] Preserve JSX mode

With v12 it seems generic JSX transform and preserve mode are mutually exclusive. (At least in my tests I could not get them to work together). What exactly are you testing? Can you give a playground...

View Article

[Feedback] Preserve JSX mode

Sorry, I don’t know how I can set the necessary compiler flags in the playground. But I just tried to build a simplified example and something strange happend. I have this simple component:...

View Article


[Feedback] Preserve JSX mode

Okay, I’m still a little confused. So, are there two things here? Preserve jsx doesn’t work with "module": "MyOwnJsx" in rescript.json? That could very well be the case. class is not respected? I...

View Article

[Feedback] Preserve JSX mode

I will create a sample. Meanwhile I also ran into another problem. I managed to make it work as described above, but it seems that using fragments (<></>) also doesn’t work as expected....

View Article


[Feedback] Preserve JSX mode

Thanks! I believe these are solvable edge cases we haven’t encountered yet.

View Article

Recruitment on the Catala project (French)

@denismerigoux I would like to know If still looking to hire. Also let me know remote is communication in French mandate for position posted.

View Article

Image may be NSFW.
Clik here to view.

ReScript Programmer - remote / healthcare / data science

agarwal: write to us at jobs@solvuu.com and send your resume @agarwal shared resume , let me know If remote engagement possible.

View Article
Browsing all 2592 articles
Browse latest View live