Skip to content

Commit

Permalink
Update examples in TypeDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jun 2, 2020
1 parent 38632cd commit 0961f07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion preact/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare namespace useStoreon {
* Hook to use Storeon in functional React component.
*
* ```js
* import useStoreon from 'storeon/preact'
* import { useStoreon } from 'storeon/preact'
* const Counter = () => {
* const { dispatch, count } = useStoreon('count')
* return <div>
Expand Down
4 changes: 2 additions & 2 deletions react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export namespace useStoreon {
* Hook to use Storeon in functional React component.
*
* ```js
* import useStoreon from 'storeon/react'
* import { useStoreon } from 'storeon/react'
* const Counter = () => {
* const { dispatch, count } = useStoreon('count')
* return <div>
Expand Down Expand Up @@ -97,7 +97,7 @@ declare namespace connectStoreon {
* Connect React components to the store.
*
* ```js
* import connect from 'storeon/react/connect'
* import { connectStoreon } from 'storeon/react/connect'
* const Counter = ({ count, dispatch }) => {
* return <div>
* {count}
Expand Down

0 comments on commit 0961f07

Please sign in to comment.