DEV Community

Discussion on: ReasonML with React Hooks Tutorial — Building a Pomodoro Timer

Collapse
 
diogomqbm_ profile image
Diogo Mafra • Edited

Nice post! I tried to implement following your instructions but I'm getting an error on

   { state.seconds |> formatTime |> str  }
   Unbound value str

where is str declared?

P.S: I'm new to ReasonML

Collapse
 
iwilsonq profile image
Ian Wilson • Edited

Oh woops, change str to ReasonReact.string,

or put this at the top of your file:

let str = ReasonReact.string;

Sorry about that! And welcome to ReasonML I hope you enjoy playing with it :)

Collapse
 
diogomqbm_ profile image
Diogo Mafra

Thank you!