官术网_书友最值得收藏!

Setting Up a Development Environment

In addition to being a new syntax for OCaml, Reason is a toolchain that makes it easy to get started. In this chapter, we'll do the following:

  • Learn about the Reason toolchain
  • Configure our editor
  • Use bsb to start a pure Reason project
  • Learn about bsconfig.json
  • Write an example pure Reason application that manipulates the DOM
  • Use bsb to start a ReasonReact project
  • Get comfortable using webpack within a Reason project

To follow along, clone this book's GitHub repository and start from this chapter's directory. You're also welcome to start from a blank project:

git clone https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide.git
cd ReasonML-Quick-Start-Guide
cd Chapter02/pure-reason-start
npm install

This chapter is meant to get you comfortable with the Reason toolchain. We'll have separate development environments for the pure Reason project and the ReasonReact one. After following along, you'll be comfortable enough to tweak the development environment to your liking. Don't worry about messing anything up, since we'll start fresh in Chapter 3Creating ReasonReact Components, from another directory.

主站蜘蛛池模板: 景宁| 淮滨县| 巴林右旗| 青州市| 台南县| 疏附县| 克什克腾旗| 余干县| 拉萨市| 榕江县| 新安县| 塘沽区| 海伦市| 绥中县| 长治县| 石阡县| 平昌县| 双柏县| 伊宁市| 林西县| 长丰县| 白玉县| 大理市| 连江县| 普定县| 敦煌市| 环江| 南漳县| 疏附县| 社旗县| 新竹市| 台南县| 大方县| 灌云县| 仁化县| 拜城县| 陈巴尔虎旗| 昭觉县| 宣城市| 北票市| 新郑市|