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
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Reagent!