Skip to content
#

reasonml

reason logo

Reason gives OCaml a familiar syntax geared toward JavaScript programmers, and caters to the existing NPM/Yarn workflow folks already know. In that regard, Reason can be considered as a solidly, statically typed, faster, and simpler cousin of JavaScript.

Here are 893 public repositories matching this topic...

dtothefp
dtothefp commented Jul 25, 2019

I've been playing around with Razzle and how the Server HMR works.

I generated a Razzle Project and run it

  • npx create-razzle-app my-app
  • cd my-app && yarn start

If I now edit the src/Home.js I see hot reloading working in the browser and I see the server.js being re-required by the index.js. But if I open my dev tools "view page source" my changes are not actually in the HTML

bryphe
bryphe commented Mar 28, 2020

Since we don't have an interactive tutorial, and our docs are sparse, we should at least be bundling the existing vim tutor.

  • Include the vimtutor as a runtime asset.
  • Add a command to open the vimtutor
  • Set the readonly flag on vimtutor, so that it can't be saved.

Additional things to think about:

  • We should hook up a Vim command as an entry point as well (ie, :tutor, `:vim
peterpme
peterpme commented May 4, 2020

A lot of folks have been asking about a documented ReasonReact API

  • mentioning stuff that's going away / deprecated
  • going through the API and at a high level, talking about each function.

There are curried versions of that function, but we should talk about them under each top level, for example:

  • useEffect
    talk about useEffect0, useEffect1, etc, here
  • useState
rauanmayemir
rauanmayemir commented Apr 2, 2019

As marked in https://github.com/briskml/brisk/blob/master/examples/hacker-news/app/Story.re#L82, we'll need to transform incoming html.

<p> tags are not rendered with proper margin/padding by Cocoa in NSTextView by default, and instead of manually changing document attributes on ObjC bindings side, simply pre-processing html text and replacing paragraphs by newline characters seems more prefe

learn-graphql
thangngoc89
thangngoc89 commented Aug 4, 2019

Relevant issue: jsdelivr/jsdelivr#18166


Update

So apparently jsdelivr will minify the main entry file and add .min. in its name. Since we check for the name. And the minified file could saves a lot of bytes and improve parsing speed for the bundler.

So we would save this default file provided by jsdelivr, check with what's provided in main field

MargaretKrutikova
MargaretKrutikova commented Mar 2, 2019

According to reason-react docs instance variables should be stored in state and be marked with ref instead of mutable to prepare for concurrent react.

I am unsure whether this makes any difference for a global state management solution like reductive, but would be nice to have a better insight into thi

Created by Jordan Walke

Released 2016

Latest release over 2 years ago

Repository
facebook/reason
Website
reasonml.github.io
Wikipedia
Wikipedia

Related Topics

javascript language ocaml react
You can’t perform that action at this time.