Web Development · head to head
React vs Stimulus

React
Web Development
A JavaScript library for building user interfaces
- From
- Free
- Free plan
- Yes

Stimulus
Web Development
Small JavaScript framework that adds behaviour to existing server rendered HTML
- From
- Free
- Free plan
- Yes
The short version
- Stimulus is an MIT licensed JavaScript framework.
- Both are free.
- Only React lists component-based architecture; only Stimulus lists designed to pair with Turbo in Hotwire.
- Where React falls short: JSX requires a build step using Webpack, Babel, or other transpilers to convert to browser-executable JavaScript.
- Where Stimulus falls short: does not render templates, so HTML must come from the server or another tool.
- Prices and features on this page were last checked on 20 November 2026.
How do React and Stimulus differ?
React and Stimulus differ on pricing model (Free against Open-source), platforms (Web, iOS, Android against Web) and year founded (2013 against 1999). Only the attributes on which React and Stimulus actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Web Development).
Which features does each one have?
They share no listed features; 20 appear only for React and 7 only for Stimulus. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in React
- Component-based architecture
- Virtual DOM
- JSX syntax
- Unidirectional data flow
- React Hooks
- Server-side rendering
- Hot reloading
- Developer tools
Only in Stimulus
- Controllers attached through data-controller
- Actions that bind DOM events to controller methods
- Targets for locating elements inside a controller
- Values that read, write and observe data attributes
- Works with server rendered HTML
- Designed to pair with Turbo in Hotwire
- MIT licensed open source
What is each one used for?
React is most often brought in for web application development; Stimulus for adding small interactions to Rails views. The jobs each tool is most often brought in to do.
React
- Web application developmentnot Stimulus
- Single-page applicationsnot Stimulus
- Interactive user interfacesnot Stimulus
- Mobile app developmentnot Stimulus
- Component librariesnot Stimulus
Stimulus
- Adding small interactions to Rails viewsnot React
- Progressive enhancement of server rendered pagesnot React
- Pairing with Turbo for fast page updatesnot React
- Replacing scattered jQuery codenot React
- Form and widget behaviour on existing HTMLnot React
Where do React and Stimulus fall short?
React's most cited limit: JSX requires a build step using Webpack, Babel, or other transpilers to convert to browser-executable JavaScript. Stimulus's: does not render templates, so HTML must come from the server or another tool. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
React
- JSX requires a build step using Webpack, Babel, or other transpilers to convert to browser-executable JavaScript
- Routing and state management are separate dependencies, not included in core library
- Configuration complexity for advanced features like server-side rendering without a meta-framework
- Requires choosing and configuring build tools and development environment setup
Stimulus
- Does not render templates, so HTML must come from the server or another tool
- No built in routing, data fetching or client side state management
- Behaviour is tied to data attributes in markup, which some teams find harder to trace
- Not a component framework, so large interactive interfaces need other libraries
How much do React and Stimulus cost?
React is free to use; Stimulus is free to use. Plan by plan below, from each vendor's own pricing page.
React
Free- Open SourceFree
- Component-based architecture
- Virtual DOM
- JSX syntax
Stimulus
FreeNo published plan breakdown. See the Stimulus review.
Which should you pick?
Choose React if
- You need component-based architecture.
- You want to start without paying.
- You work on Web, iOS, Android.
- You also want virtual dom.
Choose Stimulus if
- You need controllers attached through data-controller.
- You want to start without paying.
- You also want actions that bind dom events to controller methods.
Questions people ask
- Is React or Stimulus better?
- Neither clearly leads. React starts at Free and Stimulus at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
- Which is cheaper, React or Stimulus?
- React starts at Free and Stimulus at Free.
- Does React or Stimulus run on more platforms?
- React runs on Web, iOS, Android. Stimulus runs on Web.
- Can I use React for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is React best used for?
- React is most often used for web application development, single-page applications, interactive user interfaces, mobile app development. Of those, web application development and single-page applications are not what Stimulus is typically brought in for.
- What can React do that Stimulus cannot?
- React covers Component-based architecture, Virtual DOM, JSX syntax, Unidirectional data flow. Stimulus covers Controllers attached through data-controller, Actions that bind DOM events to controller methods, Targets for locating elements inside a controller, Values that read, write and observe data attributes.
Answered from the vendors’ own pages
React: Is React free to use commercially?
Yes. React is distributed under the MIT open-source license, which permits free usage for both personal and commercial projects without licensing fees or restrictions.
SourceStimulus: What is Stimulus used for?
Stimulus enhances HTML that already exists on the page by connecting JavaScript controllers to elements through data attributes. It does not generate the HTML itself.
SourceReact: Does React support TypeScript?
Yes. React works seamlessly with TypeScript for type-safe component development. TypeScript provides static type checking for React components, props, and state, improving code reliability and developer experience.
SourceStimulus: What are the core concepts in Stimulus?
Controllers are the main unit, and they are joined by actions, targets and values. Actions link events to methods, targets find elements and values store state in data attributes.
SourceReact: Do I need a build step to use React?
If you use JSX, yes. JSX requires transpilation by a build tool like Webpack and Babel before browsers can execute it. However, React can be used without JSX by calling React.createElement directly, which does not require a build step.
SourceStimulus: What licence does Stimulus use?
The GitHub repository states that Stimulus is released under the MIT licence. It is free to use.
SourceReact: Can I build offline-capable applications with React?
Yes. React supports building Progressive Web Apps (PWAs) with service workers and IndexedDB for offline functionality. Create React App includes service worker setup, though it must be manually enabled for production use.
SourceStimulus: Why was Stimulus created?
According to the project's origin page, Basecamp used a mix of jQuery, vanilla JavaScript and object oriented subsystems that were hard to reuse and learn. Stimulus condensed those patterns into a small, consistent framework.
SourceRelated pages
Other head to heads
- React vs Lit
- React vs Next.js
- React vs Vue.js
- React vs Angular
- React vs SolidJS
- React vs Preact
- React vs HTMX
- React vs Svelte
- React vs MUI
- React vs Chakra UI
- React vs NestJS
- React vs shadcn/ui
- React vs Tailwind CSS
- React vs Wix
- React vs Netlify
- React vs Ruby on Rails
- React vs v0 by Vercel
- React vs Alpine.js
- React vs Bootstrap
- React vs Radix UI
- React vs SolidStart
- React vs Bolt.new
- React vs .NET
- React vs Express.js
- React vs FastAPI
- React vs Strikingly
- Stimulus vs Lit
- Stimulus vs Next.js
- Stimulus vs Vue.js
- Stimulus vs Angular
- Stimulus vs SolidJS
- Stimulus vs Preact
- Stimulus vs HTMX
- Stimulus vs Svelte
- Stimulus vs MUI
- Stimulus vs Chakra UI
- Stimulus vs NestJS
- Stimulus vs shadcn/ui
- Stimulus vs Tailwind CSS
- Stimulus vs Wix
- Stimulus vs Netlify
- Stimulus vs Ruby on Rails
- Stimulus vs v0 by Vercel
- Stimulus vs Alpine.js
- Stimulus vs Bootstrap
- Stimulus vs Radix UI
- Stimulus vs SolidStart
- Stimulus vs Bolt.new
- Stimulus vs .NET
- Stimulus vs Express.js
- Stimulus vs FastAPI
- Stimulus vs Strikingly
