Skip to content

Commit f399c64

Browse files
Update upgrading.md
1 parent ed47d99 commit f399c64

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/installation/upgrading.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In Hyperstack we are using Rails templates to create new applications.
2121
+ Follow these instructions: https://github.com/hyperstack-org/hyperstack/tree/edge/install
2222
+ See the template for an understanding of the installation steps: https://github.com/hyperstack-org/hyperstack/blob/edge/install/rails-webpacker.rb
2323

24-
**If you aee not upgrading an existing Hyoperloop application you do not need to follow the rest of these instructions.**
24+
**If you are not upgrading an existing Hyoperloop application, you do not need to follow the rest of these instructions.**
2525

2626
## Hyperstack gem
2727

@@ -64,9 +64,9 @@ The simplest way to implement this change is a global search and replace in your
6464

6565
## There is a new concept of a base `HyperComponent` and `HyperStore` base class
6666

67-
In Hyperloop, all Components and Stores inherited from a base `Hyperloop::Component` class. In HyperStack (following the new Rails convention), we do not provide the base class but encourage you to create. your own. This is very useful for containing methods that all your Components share.
67+
In Hyperloop, all Components and Stores inherited from a base `Hyperloop::Component` class. In HyperStack (following the new Rails convention), we do not provide the base class but encourage you to create your own. This is very useful for containing methods that all your Components share.
6868

69-
To implement this change, you need to create your own HyperComponent class:
69+
To implement this change, you need to create your HyperComponent class:
7070

7171
```ruby
7272
class HyperComponent
@@ -107,9 +107,9 @@ end
107107

108108
**The same is true for `Hyperloop::Store` to `HyperStore`**.
109109

110-
ou will need to create a `HyperStore` class and make the same changes as above.
110+
You will need to create a `HyperStore` class and make the same changes as above.
111111

112-
Note that in Hyperstack, any ruby class can be a store simply by including the `include Hyperstack::State::Observable` mixin.
112+
Note that in Hyperstack, any ruby class can be a store by merely including the `include Hyperstack::State::Observable` mixin.
113113

114114
For example:
115115

@@ -155,7 +155,7 @@ There are several advantages to this new approach:
155155

156156
+ It is significantly faster (ask Mitch)
157157
+ It feels more natural to think about state variables as normal instance variables
158-
+ You only use the `mutate` method when you want React to re-render based ont eh change to state. This gives you more control.
158+
+ You only use the `mutate` method when you want React to re-render based on the change to state. This gives you more control.
159159
+ You can string mutations together. For example:
160160

161161
```ruby
@@ -202,7 +202,7 @@ A Hyperstack router looks like this:
202202

203203
```ruby
204204
class MainFrame < HyperComponent
205-
include Hyperstack::Router # note the inclusing of the Router mixin
205+
include Hyperstack::Router # note the inclusion of the Router mixin
206206

207207
render(DIV) do # note the render method
208208
Switch do

0 commit comments

Comments
 (0)