Very nice that this has come up. I’ve heard the same kind of feedback from developers who want to try reason - people just get scared away before even giving it a fair shot - makes our attempts to grow the community a tad more difficult.
For instance, right from the start, in Index.re
: I’ve read the comments with the explanation, but the first thing you see doesn’t feel like a pleasant first encounter with Reason, nor is it representative of ReasonML code. Hell, it scares even me away
[@bs.val] external document: Js.t({..}) = "document";
let style = document##createElement("style");
document##head##appendChild(style);
style##innerHTML #= ExampleStyles.style;
The phrasing in the README is another aspect that requires some consideration. “We’ve included a convenience UNUSED_webpack.config.js
, in case you want to ship your project to production.” This sort of implies that Reason applications are not meant/ready to be shipped to production (of course we know this is not the case! )
I think it is fair to say that most beginners prefer a minimal example with a place to start. With that in mind, the suggestion to use Parcel sounds intriguing for sure. I’ve tried v1 and it really “just worked” with 0 configuration (as advertised).