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

  • ReasonML Quick Start Guide
  • Raphael Rafatpanah Bruno Joseph D'mello
  • 169字
  • 2021-07-02 12:34:15

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.

主站蜘蛛池模板: 阳原县| 灌阳县| 泊头市| 太湖县| 南康市| 阜阳市| 铜梁县| 奉节县| 珲春市| 清水河县| 屏南县| 孟州市| 霍林郭勒市| 肇庆市| 巢湖市| 德兴市| 泾源县| 梁平县| 佛坪县| 开原市| 扶余县| 新龙县| 霍山县| 丰顺县| 舟山市| 锡林郭勒盟| 洪泽县| 盐边县| 射阳县| 和静县| 清水县| 大姚县| 仁布县| 克什克腾旗| 塘沽区| 农安县| 洮南市| 中卫市| 溆浦县| 临海市| 宝坻区|