Skip to content

Commit

Permalink
Use @wordpress/compose instead of @wordpress/components (#8537)
Browse files Browse the repository at this point in the history
These docs show deprecated usage of withState
  • Loading branch information
Shelob9 authored and ajitbohra committed Aug 5, 2018
1 parent 426f484 commit 3450273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compose/src/with-state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Wrapping a component with `withState` provides state as props to the wrapped com
/**
* WordPress dependencies
*/
import { withState } from '@wordpress/components';
import { withState } from '@wordpress/compose';

function MyCounter( { count, setState } ) {
return (
Expand Down

0 comments on commit 3450273

Please sign in to comment.