Skip to content

sansthesis/gatsby-plugin-reason

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-plugin-reason

Provides drop-in support for Reason.

Install

yarn add gatsby-plugin-reason bs-platform reason-react --save

How to use

  1. Include the plugin in your gatsby-config.js file.
  2. Add bsconfig.json file on your root directory.
  3. Write your components in Reason.

gatsby-config.js

plugins: [
  `gatsby-plugin-reason`,
]

bsconfig.json

{
  "name": "my-project-name",
  "sources": [{
    "dir": "src",
    "subdirs": ["pages"]
  }],
  "bs-dependencies": [
    "reason-react"
  ],
  "reason": {
    "react-jsx": 2
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published