Reagent is a minimalistic ClojureScript interface to React that enables developers to write efficient React components using plain ClojureScript functions and data, leveraging a Hiccup-like syntax and immutable state to simplify UI creation. React is pretty darn fast, and so is Reagent. It should even be faster than plain old javascript React a lot of the time, since ClojureScript allows us to skip a lot of unnecessary rendering (through judicious use of React's shouldComponentUpdate). The ClojureScript overhead is kept down, thanks to lots of caching. Code size is a little bigger than React.js, but still quite small. The todomvc example clocks in at roughly 79K gzipped, using advanced compilation.
Features
- Define components with just ClojureScript functions
- Hiccup-style syntax for UI markup
- Uses Reagent atoms (ratoms) for reactive state management
- Fast DOM diffing and re-rendering via React virtual DOM
- Minimal boilerplate—easy to get started and concise
- Seamless integration with popular frameworks like re-frame and React ecosyste
Categories
FrameworksLicense
MIT LicenseFollow Reagent
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Reagent!