Skip to content

Commit

Permalink
Fix version numbers in README
Browse files Browse the repository at this point in the history
  • Loading branch information
megamaddu committed Nov 9, 2018
1 parent 9999161 commit 4b1b54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ See [the documentation](https://pursuit.purescript.org/packages/purescript-react
- [A controlled input](./examples/controlled-input/src/ControlledInput.purs)
- [Components](./examples/component/src/ToggleButton.purs) in [components](./examples/component/src/Container.purs)

## Migrating to v4 from v2 or v3
## Migrating from v2 or v3

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.
`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.
2 changes: 2 additions & 0 deletions src/React/Basic/Compat.purs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- | This module is deprecated and may be removed in the next
-- | major version.
module React.Basic.Compat
( Component
, component
Expand Down

0 comments on commit 4b1b54e

Please sign in to comment.