Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 33f4dc8

Browse files
committed
Update README
1 parent cdf7948 commit 33f4dc8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ It is very unlikely that there will be any more releases of the `reactive-ruby`
7272
There are no syntactic or semantic breaking changes between `reactrb` v 0.8.x and
7373
previous versions, however the `reactrb` gem does *not* include the react-js source as previous versions did. This allows you to pick the react js source compatible with other gems and react js components you may be using.
7474

75-
To upgrade, replace `reactive-ruby` with `reactrb`, both in your Gemfile, and in any `requires` in your code. You will also need to require react-js as this is no longer included in the gem.
75+
Follow these steps to upgrade:
7676

77-
If you are using react-rails then simply find anyplace where you `require 'reactrb'` and immediately before this do a `require 'react'` which will load the compatible react js file.
78-
79-
If you are using webpack then add `react` to your manifest.
80-
81-
If you are not using react-rails then find where you `require 'reactrb'` and immediately before this do a `require 'react-latest'` (or 'react-v13', 'react-v14' or 'react-v15')
77+
1. Replace `reactive-ruby` with `reactrb` both in **Gemfile** and any `require`s in your code.
78+
2. To include the React.js source, the suggested way is to add `require 'react/source'` before `require 'reactrb'`. This will use the copy of React.js source from `react-rails` gem.
8279

8380
# Roadmap
8481

0 commit comments

Comments
 (0)