Not reviewed yet: this page may be outdated or inconsistent with the other guides. The API reference is generated from the current source.
Documentation index
Reagent 2
- What's new in Reagent 2.0: React 19,
defcandreagent.hooks - Upgrading to 2.0
Tutorials
- Getting Started: create a new app with shadow-cljs
- Using Hiccup to Describe HTML
- Creating Reagent Components
- Using [square brackets] instead of (parentheses)
- When do components update?
- [WIP] Managing State: atoms, cursors, Reactions, and tracking
- Batching and Timing: How Reagent Renders Changes to Application State
- Interop with React
- React Features and how to use them in Reagent
- Reagent Compiler
- Controlled Inputs
- Best Practices (draft)
- Web Components (Custom Elements)
Also:
- purelyfunctional.tv - an excellent, written tutorial
- Reagent Deep Dive Series by Timothy Pratley - a four part series
- Reagent Mysteries series by Paulus Esterhazy - a four part series
- Props, Children & Component Lifecycle by Martin Klepsch
- Using Stateful JS Components - like D3 (external link)
Commercial Videos Series
- Learn Reagent by Jacek Schae (ClojureStream)
- Learn Re-frame by Jacek Schae (ClojureStream)
- purelyfunctional.tv
- Lambda Island Videos
Frequently Asked Questions
- Why isn't my Component re-rendering?
- How do I use React's "refs"
- How can I use an entity like "nbsp"?
- Why is my attribute (like autoFocus) missing?
- How can I use React's dangerouslySetInnerHTML?
- Reagent doesn't work after updating dependencies
- How do I force Component re-creation?
- Using HTML entities
- How do I access "props" in lifecycle methods? (external link)
Examples
- MaterialUI with working TextField, React interop example
Want To Add An FAQ?
Many Thanks!! We'd like that:
- As a base, just use the structure from one of the existing FAQs files
- Give us a PR which includes your new file AND a change to this README so your entry is listed.