Provides drop-in support for Reason.
yarn add gatsby-plugin-reason bs-platform reason-react --save
- Include the plugin in your
gatsby-config.jsfile. - Add
bsconfig.jsonfile on your root directory. - 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
}
}