I noticed that in a few places the post hasReact.arrayToElement when it should say ReasonReact.arrayToElement.
Also, I got pretty tripped up here:
I didn't notice the /* ... */ had code inside it! After all, it kinda looks like a comment. This led to me writing my state type definition after the call to ReasonReact.statefulComponent, which led to Unbound record field items errors that were pretty confusing for me.
Maybe that collapsable section should be open by default? Or maybe you could use a disclosure arrow instead of comment syntax.
Excellent post @jaredly!
I noticed that in a few places the post has
React.arrayToElement
when it should sayReasonReact.arrayToElement
.Also, I got pretty tripped up here:
I didn't notice the
/* ... */
had code inside it! After all, it kinda looks like a comment. This led to me writing my state type definition after the call toReasonReact.statefulComponent
, which led toUnbound record field items
errors that were pretty confusing for me.Maybe that collapsable section should be open by default? Or maybe you could use a disclosure arrow instead of comment syntax.
Anyway, thanks again for writing this! 😄