Skip to content

Ruby on Rails + React w/ TypeScript via Webpacker

Notifications You must be signed in to change notification settings

firxworx/rails-react

Repository files navigation

rails-react - Ruby on Rails + React w/ TypeScript via Webpacker

This project is a new Ruby on Rails project that adds support for React + TypeScript via Webpacker.

This code accompanies the blog entry at: https://firxworx.com/blog/coding/configuring-ruby-on-rails-to-support-react-typescript-with-webpacker/

Refer to app/javascript/components to find the App.tsx component.

The React entry point is app/javascript/packs/hello_react.tsx which is included via javascript_pack_tag in the <head>..</head> of the app/views/layouts/application.html.erb template.

To start the rails development server on http://localhost:3000, run:

rails s

For documentation on the webpack dev server and other webpack capabilities refer to: https://github.com/rails/webpacker#development.

About

Ruby on Rails + React w/ TypeScript via Webpacker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published