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

Tutorials

  1. Getting Started: create a new app with shadow-cljs
  2. Using Hiccup to Describe HTML
  3. Creating Reagent Components
  4. Using [square brackets] instead of (parentheses)
  5. When do components update?
  6. [WIP] Managing State: atoms, cursors, Reactions, and tracking
  7. Batching and Timing: How Reagent Renders Changes to Application State
  8. Interop with React
  9. React Features and how to use them in Reagent
  10. Reagent Compiler
  11. Controlled Inputs
  12. Best Practices (draft)
  13. Web Components (Custom Elements)

Also:

Commercial Videos Series

Frequently Asked Questions

  1. Why isn't my Component re-rendering?
  2. How do I use React's "refs"
  3. How can I use an entity like "nbsp"?
  4. Why is my attribute (like autoFocus) missing?
  5. How can I use React's dangerouslySetInnerHTML?
  6. Reagent doesn't work after updating dependencies
  7. How do I force Component re-creation?
  8. Using HTML entities
  9. How do I access "props" in lifecycle methods? (external link)

Examples

Want To Add An FAQ?

Many Thanks!! We'd like that:

  1. As a base, just use the structure from one of the existing FAQs files
  2. Give us a PR which includes your new file AND a change to this README so your entry is listed.

Misc Docs