Skip to content

Commit 4b1b54e

Browse files
committed
Fix version numbers in README
1 parent 9999161 commit 4b1b54e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ See [the documentation](https://pursuit.purescript.org/packages/purescript-react
2929
- [A controlled input](./examples/controlled-input/src/ControlledInput.purs)
3030
- [Components](./examples/component/src/ToggleButton.purs) in [components](./examples/component/src/Container.purs)
3131

32-
## Migrating to v4 from v2 or v3
32+
## Migrating from v2 or v3
3333

34-
v4 includes a new (but deprecated) module, `React.Basic.Compat`. It matches most of the old API and types (except `setStateThen` and `isFirstMount`) to make upgrading easier and more gradual. You can find `^import\sReact\.Basic\b` and replace with `import React.Basic.Compat`, upgrade the package version, and proceed from there one component at a time (or only new components). See the documentation link above for more info on the v4 API.
34+
`React.Basic.Compat` is a new (but deprecated) module. It matches most of the old API and types (except `setStateThen` and `isFirstMount`) to make upgrading easier and more gradual. You can find `^import\sReact\.Basic\b` and replace with `import React.Basic.Compat`, upgrade the package version, and proceed from there one component at a time (or only new components). See the documentation link above for more info on the new API.

src/React/Basic/Compat.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
-- | This module is deprecated and may be removed in the next
2+
-- | major version.
13
module React.Basic.Compat
24
( Component
35
, component

0 commit comments

Comments
 (0)