Skip to content

Commit 52c1844

Browse files
committed
Update README
1 parent 063eb34 commit 52c1844

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ReactiveReSwift relies on a few principles:
3939
For a very simple app, one that maintains a counter that can be increased and decreased, you can define the app state as following:
4040

4141
```swift
42-
struct AppState: StateType {
42+
struct AppState {
4343
var counter: Int
4444
}
4545
```
@@ -76,9 +76,8 @@ In order to have a predictable app state, it is important that the reducer is al
7676
To maintain our state and delegate the actions to the reducers, we need a store. Let's call it `mainStore` and define it as a global constant, for example in the app delegate file:
7777

7878
```swift
79-
let mainStore = ObservableStore(
79+
let mainStore = Store(
8080
reducer: appReducer,
81-
stateType: AppState.self,
8281
observable: ObservableProperty(AppState(counter: 0))
8382
)
8483

0 commit comments

Comments
 (0)