Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 610 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 610 Bytes

React in Rails commands

(copied from my rails history)

$ cd Desktop $ rails new foxtrotters -d postgresql -T $ cd foxtrotters $ rails db:create $ rails s $ git checkout -b react-in-rails $ bundle add webpacker $ bundle add react-rails $ rails webpacker:install $ rails webpacker:install:react $ yarn add @babel/preset-react $ yarn add @rails/activestorage $ yarn add @rails/ujs $ rails g react:install $ rails g react:component App $ code . $ rails g controller Home $ rm app/helpers/home_helper.rb $ bundle add bootstrap $ yarn add reactstrap $ yarn add react-router-dom $ rails s