Skip to content

Commit 7222123

Browse files
author
Matthew Holloway
committed
Adding typing to useState
1 parent 71ec206 commit 7222123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AccordionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const AccordionItem = ({
2323
activeClassName,
2424
...rest
2525
}: Props): JSX.Element => {
26-
const [instanceUuid] = useState(nextUuid());
26+
const [instanceUuid] = useState<UUID>(nextUuid());
2727
const uuid = customUuid || instanceUuid;
2828

2929
const renderChildren = (itemContext: ItemContext): JSX.Element => {

0 commit comments

Comments
 (0)