摘要: /* list of strings */ let _ = ["example-1", "example-2", "example-3"]; /* Array of strings */ let _ = [|"example-1", "example-2", "example-3"|]; /* Stating the type of a Reason record */ type event... 阅读全文
posted @ 2017-10-28 01:57 Zhentiw 阅读(351) 评论(0) 推荐(0)
摘要: // ::country is named param // ::country=?: which make it optional // because we make ::country=? optional named param, we may pass in or may not pass in // we need use '()' --> (): string => , which... 阅读全文
posted @ 2017-10-28 01:55 Zhentiw 阅读(218) 评论(0) 推荐(0)
摘要: For example, we want to use moment.js inside our ReasonML code. What we can do is create a module file: Using it inside component: 阅读全文
posted @ 2017-10-28 01:52 Zhentiw 阅读(313) 评论(0) 推荐(0)