react-rails

Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.

APACHE-2.0 License

Downloads
841.6K
Stars
6.7K
Committers
178

Bot releases are hidden (Show)

react-rails - 2.6.2 Latest Release

Published by BookOfGreg over 2 years ago

What's Change

  • React 16.14
  • Support for ShakaPacker
  • Preparation for React 18 #1151

Bug Fixes

  • URI.open instead of open #1099
  • No longer unmount components on Turbolinks navigation #1135

New Contributors

Full Changelog: https://github.com/reactjs/react-rails/compare/v2.6.1...v2.6.2

react-rails - 2.6.0

Published by BookOfGreg about 5 years ago

As always a big thank you to everyone who contributes to make the project a success!
🎉 We passed 7 million downloads of the Gem and 3 million on the NPM package. 🎉

New Features

  • Typescript component generator #990

Deprecation

Bug Fixes

  • assert_react_component will not pass tests where the case was different #979
  • action_controller/test_case was accidentally required in dev #996

Thanks to all the wonderful people that helped.

@delkopiso
@huacnlee
@Aesthetikx
@HorizonShadow
@cprodhomme
@0xdevalias
@gasi
@hphu3

react-rails - 2.5.0

Published by BookOfGreg over 5 years ago

As always a big thank you to everyone who contributes to make the project a success!
🎉 We passed 5 million downloads of the Gem this month and very close to 2 million on the NPM package. 🎉

Breaking Changes

New Features

  • React 16.8.6 prebundled #977
  • Added assert_react_component test helper #957
  • Supports Webpacker 4, Ruby 2.6 #934
  • Supports camelize on ActionController::Parameters #932

Deprecation

Bug Fixes

  • Linting fix to generated JS #941
  • (Meta) Tests for react-rails updated #892 #894 #916
react-rails - 2.4.5

Published by BookOfGreg over 6 years ago

react-rails - 2.4.3

Published by BookOfGreg almost 7 years ago

2.4.3

Bug Fixes

  • Call ReactDOM.render() when react_component :prerender option is falsy, instead of ReactDOM.hydrate() #844, #842
react-rails - 2.4.2

Published by BookOfGreg almost 7 years ago

2.4.2

Bug Fixes

  • ReactDOM.hydrate() may not be defined for everyone, it will now use hydrate if it is defined or fallback to render #832
react-rails - 2.4.1

Published by BookOfGreg almost 7 years ago

New Features

  • Webpacker gets ES6 components by default #822
  • ReactDOM.hydrate() #828
  • Documentation updates #830

Bug Fixes

  • Webpacker local manifest sometimes had double asset_hosts if the dev server was running #834 thanks @joeyparis
react-rails - 2.4.0

Published by BookOfGreg almost 7 years ago

Breaking Changes

  • (Sprockets) Prebundled React upgraded to 16 #792
  • (Sprockets) Addons removed #792

New Features

  • All generators make React 16 style components

Deprecation

Bug Fixes

  • Coffeescript generator exports correctly #799, #800
  • Running detector manually no longer breaks if Turbolinks is not preset #802
react-rails - 2.3.1

Published by BookOfGreg about 7 years ago

Breaking Changes

  • React Deprecations for 15.4, 15.5, 15.6 in preparation for 16 handled in prebundled version

New Features

  • Generator now makes modern style createReactClass(JS) or extends React.Component(ES6, CoffeeScript) code

Deprecation

  • Next version will drop the addons option as they are not supported with React 16
  • TheRubyRacer's newest version (0.12.3 at time of writing) only supports libV8 (3.16.14.15) which is too old for some new JS features, future versions of this gem will need more modern ExecJS runtimes such as mini_racer (currently on libV8 5.9.x)
react-rails - 2.3.0

Published by BookOfGreg about 7 years ago

New Features

  • Webpacker and Webpack 3 support #777
  • Update to React 15.6.2 #789
react-rails - v1.5.0

Published by rmosolgo almost 9 years ago

react-rails - v1.4.2

Published by rmosolgo almost 9 years ago

Update React.js to 0.14.2

react-rails - v1.4.1

Published by rmosolgo almost 9 years ago

Minify & optimize React.js production version

react-rails - 1.4.0

Published by rmosolgo almost 9 years ago

Build custom JS bundles with Webpack, include React 0.14.

react-rails - v1.3.3

Published by rmosolgo almost 9 years ago

Fix for view helper, fix for unmountComponents + React 0.14

react-rails - v1.3.2

Published by rmosolgo about 9 years ago

Support DOM nodes in UJs, support React 0.14.0 in UJS

react-rails - v1.3.1

Published by rmosolgo about 9 years ago

Fix for ActionController::TestCase not running middleware (use before_filter instead)

react-rails - v1.3.0

Published by rmosolgo about 9 years ago

Breaking Changes

New Features

  • Render components directly from the controller with render component: ... #329
  • Provide a custom view helper with config.react.view_helper_implementation #346

Deprecation

Bug Fixes

  • Allow react-rails configs to be set in initializers #347
react-rails - v1.2.0

Published by rmosolgo about 9 years ago

New Features

  • Support --es6 option in component generator #332
  • Support Sprockets 3 #322

Bug Fixes

  • Don't bother unmounting components onBeforeUnload #318
  • Include React::Rails::VERSION in the gem #335
react-rails - v1.1.0

Published by rmosolgo over 9 years ago

Notable changes:

  • BabelTransformer as default JSX transformer (breaking, you'll need to update some configs, see changelog)
  • To serve different React.js builds, don't copy React.js into the local filesystem, instead add different directories to the asset pipeline
  • Can provide custom implementations of server rendering & transforming JSX

See everything in the changelog!

Package Rankings
Top 1.65% on Npmjs.org
Top 0.79% on Rubygems.org
Top 3.76% on Proxy.golang.org
Badges
Extracted from project README
Gem npm Ruby