menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Reason

Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems.

Channels
Team
Posts
Members
Info

Variants as React Component Props

Hey. Just started my Reason journey. As one of the first experimentations I'm trying to create a Button component in ReasonReact that could replace existing component in our codebase. The existing Button has a prop called bsStyle (based on Bootstrap) accepting values such as…

message-simple
5

Nested Options

I'm modeling a graphql response with Reason records, and loving it. The one thing that i'm having some trouble wrapping my head around is the option type and how to easily access nested options in a record. example: say I want to access the pageInfo.hasNextPage of a connection.…

message-simple
5

bs_platform as devDep or just dep

The examples and docs i've seen have bs-platform as a devDep... but when compiling it requires pieces from bs-platform in the javasvcript. Shouldn't bs-platform be a dependency in this case?

message-simple
4