PureScript & Pux -- a safer, more expressive way to React
summary
PureScript compiles to JavaScript with no runtime, uses effect types to encode DOM, AJAX, time and randomness in function signatures, and supports newtype and algebraic data types so the compiler forces exhaustive handling; Pux is an Elm-like, Pux wrapper for React that compiles views to VDOM, exposes a start function that renders into the DOM, and lets components be exported to plain React via foreign import interop — used in small production pieces like autocomplete and analytics.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:30Understanding PureScript
- 1:55Types and functional purity
- 4:06Effect systems and types
- 7:01Functional programming design
- 10:14Defining custom types
- 13:01Data types and pattern matching
- 14:27Introduction to Pux
- 17:02Building components in Pux
- 20:11Integrating into React
- 21:34Learning resources and wrap-up
related talks
28mPureScript & Pux -- a safer, more expressive way to React
01h 49mPurely Functional Web Apps using React and PureScript
45mPureScript (Maybe This Time We Get JavaScript Right)
29mEvolving the Visual Programming Environment with React
34mWhy React is just better in Reason
28mType-safe React with ReasonML
33mWhy I Love JSX!
41mReasonML: React as a Language and what the Future looks like
