Reasonml Quick Start Guide
暫譯: ReasonML 快速入門指南
Rafatpanah, Raphael, Joseph D'Mello, Bruno
- 出版商: Packt Publishing
- 出版日期: 2019-02-28
- 售價: $1,450
- 貴賓價: 9.5 折 $1,378
- 語言: 英文
- 頁數: 180
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1789340780
- ISBN-13: 9781789340785
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Hands on learning by building a real world app shell that includes client-side routing and more.
- Understand Reason’s ecosystem including BuckleScript and various npm workflows.
- Learn how Reason differs from TypeScript and Flow, and how to use it to make refactoring less stressful.
Book Description
ReasonML, also known as Reason, is a new syntax and toolchain for OCaml that was created by Facebook and is meant to be approachable for web developers. Although OCaml has several resources, most of them are from the perspective of systems development. This book, alternatively, explores Reason from the perspective of web development.
You'll learn how to use Reason to build safer, simpler React applications and why you would want to do so. Reason supports immutability by default, which works quite well in the context of React.
In learning Reason, you will also learn about its ecosystem – BuckleScript, JavaScript interoperability, and various npm workflows. We learn by building a real-world app shell, including a client-side router with page transitions, that we can customize for any Reason project. You'll learn how to leverage OCaml's excellent type system to enforce guarantees about business logic, as well as preventing runtime type errors.You'll also see how the type system can help offload concerns that we once had to keep in our heads.
We'll explore using CSS-in-Reason, how to use external JSON in Reason, and how to unit-test critical business logic. By the end of the book, you'll understand why Reason is exploding in popularity and will have a solid foundation on which to continue your journey with Reason.
What you will learn
- Learn why Reason is exploding in popularity and why it's the future of React
- Become familiar with Reason's syntax and semantics
- Learn about Reason's ecosystem: BuckleScript and JavaScript interoperability
- Learn how to build React applications with Reason
- Learn how to use Reason's type system as a tool to provide amazing guarantees
- Gain a solid foundation on which to continue your journey
Who this book is for
The target audience of this book is web developers who are somewhat familiar with ReactJS and who want to learn why ReasonML is the future of ReactJS.
商品描述(中文翻譯)
#### 主要特點
- 透過建立一個包含客戶端路由等功能的實際應用程式外殼進行實作學習。
- 了解 Reason 的生態系統,包括 BuckleScript 和各種 npm 工作流程。
- 學習 Reason 與 TypeScript 和 Flow 的不同之處,以及如何使用它來減輕重構的壓力。
#### 書籍描述
ReasonML,也稱為 Reason,是一種新的 OCaml 語法和工具鏈,由 Facebook 創建,旨在讓網頁開發者更易於接觸。雖然 OCaml 擁有多種資源,但大多數資源都是從系統開發的角度出發。本書則從網頁開發的角度探討 Reason。
您將學習如何使用 Reason 建立更安全、更簡單的 React 應用程式,以及為什麼您會想這樣做。Reason 預設支持不可變性,這在 React 的上下文中運作得相當良好。
在學習 Reason 的過程中,您還將了解其生態系統——BuckleScript、JavaScript 互操作性以及各種 npm 工作流程。我們將透過建立一個實際的應用程式外殼來學習,包括具有頁面過渡的客戶端路由器,這可以根據任何 Reason 專案進行自定義。您將學習如何利用 OCaml 優秀的類型系統來強化業務邏輯的保證,並防止運行時類型錯誤。您還將看到類型系統如何幫助減輕我們曾經需要記住的顧慮。
我們將探討如何在 Reason 中使用 CSS、如何在 Reason 中使用外部 JSON,以及如何對關鍵業務邏輯進行單元測試。在書籍結束時,您將了解為什麼 Reason 正在迅速流行,並將擁有堅實的基礎以繼續您的 Reason 學習之旅。
#### 您將學習的內容
- 了解為什麼 Reason 正在迅速流行,以及為什麼它是 React 的未來
- 熟悉 Reason 的語法和語義
- 了解 Reason 的生態系統:BuckleScript 和 JavaScript 互操作性
- 學習如何使用 Reason 建立 React 應用程式
- 學習如何使用 Reason 的類型系統作為提供驚人保證的工具
- 獲得堅實的基礎以繼續您的學習之旅
#### 本書適合誰
本書的目標讀者是對 ReactJS 有一定了解的網頁開發者,並希望學習為什麼 ReasonML 是 ReactJS 的未來。
目錄大綱
- Introduction to ReasonML
- Setting Up a Development Environment
- Creating ReasonReact Components
- BuckleScript, Belt, and Interoperability
- Effective ML
- CSS-in-JS (in Reason)
- JSON in Reason
目錄大綱(中文翻譯)
- Introduction to ReasonML
- Setting Up a Development Environment
- Creating ReasonReact Components
- BuckleScript, Belt, and Interoperability
- Effective ML
- CSS-in-JS (in Reason)
- JSON in Reason