- Filename determines module name.
- You don't need to import modules!
- Converting between different Reason data types.
- Don't forget to convert basic data types to React elements, with
ReasonReact.string
,ReasonReact.array
, orReasonReact.null
. - Passing props, and the use of
~
and_
with argument names - Learn to define variants and records.
- Pattern matching!
- Handle state in ReasonReact with a reducerComponent.
- Higher order functions in Reason.
- Style with CSS stylesheet or inline.
- Bucklescript's Belt module provides us a more Javascript-like standard library.
- Functions in Reason are automatically curried.
- The pipe |> and fast pipe -> operators enables function chaining
- Fetching and handling JSON - ReasonReact meets world
- Router comes included!
- Search for Reason bindings to use popular npm libraries
cd reasonreact-routing-tip
npx http-server
- Open up the given ip address
- We need to have a valid url for Reason to create a
history state object