Skip to content

Commit

Permalink
Fix typo in useSelector docs (#1254)
Browse files Browse the repository at this point in the history
* Add selector deps, perf info, and bump version

* Fix typo in useSelector docs
  • Loading branch information
philipp-spiess authored and markerikson committed Apr 23, 2019
1 parent d4f09a7 commit e2804f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/api/hooks.md
Expand Up @@ -72,11 +72,7 @@ import React, { useCallback } from 'react'
import { useSelector } from 'react-redux'

export const TodoListItem = props => (
state => state.todos[props.id],
[props.id]
)

const todo = useSelector(todoSelector)
const todo = useSelector(state => state.todos[props.id], [props.id])

return <div>{todo.text}</div>
}
Expand Down

0 comments on commit e2804f2

Please sign in to comment.