DEV Community

ReasonML for production React Apps? 🤔 (Part 3)

Seif Ghezala 🇩🇿 on May 11, 2019

A while ago I published this article about building an accessible and reusable modal/dialog component in React. React modal The component ach...
Collapse
 
margaretkrutikova profile image
Margarita Krutikova

Thanks for the amazing article! Very useful practical info on how to implement tricky things in ReasonReact.

Just wanted to mention, keyCode is being deprecated according to MDN docs, instead it seems like key property is a safer choice in this case.

Collapse
 
seif_ghezala profile image
Seif Ghezala 🇩🇿

Thanks! I'll correct that.

Collapse
 
yawaramin profile image
Yawar Amin

Hey Seif, nice article. Just fyi there is a recommended community binding to the Web API: github.com/reasonml-community/bs-w...

Collapse
 
gdotdesign profile image
Szikszai Gusztáv

Nice series so far 👍 Now I have to introduce you to Mint (which I am the author of) - a language which uses React as a platform (same as Reason) and have the same semi functional approach. I have a feeling you will like it 😉

Collapse
 
theodesp profile image
Theofanis Despoudis • Edited

Lack of documentation is a ship stopper. Thats why Reason is a no-go area for now.

Collapse
 
hagnerd profile image
Matt Hagner

The lack of documentation surrounding Reason, Reason React, and the whole Reason / OCaml ecosystem is definitely a bummer.

It's no substitution, but Reason and OCaml code both tend to be extremely self documenting if you dive into the source code, due to the strong typing and interface files.

I'm hoping that this is an issue that can start to be solved because Reason and OCaml are both great, but without proper documentation it will be struggle to get people to adopt them in their projects.

Collapse
 
theodesp profile image
Theofanis Despoudis

It's also the fact that there as so few threads in Stackoverflow and Reddit. I don't even see people writing about it. Just sporadically.

Collapse
 
seif_ghezala profile image
Seif Ghezala 🇩🇿

I feel you, there are definitely certain gaps in the documentation. I think it's still very good documentation though. I can say that because I managed to write this series just by reading Reason & ReasonReact documentation. During the few times where I got stuck, the community on the forums & Discord was immediately helpful.