Skip to content

Commit

Permalink
ts: type is inferred from useState argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dbismut committed Jan 2, 2022
1 parent 2c3c92e commit 24d6ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const Image: React.FC<ImagePropTypes> = function ({
explicitWidth,
data,
}) {
const [loaded, setLoaded] = useState<boolean>(false);
const [loaded, setLoaded] = useState(false);

const handleLoad = () => setLoaded(true);

Expand Down

0 comments on commit 24d6ae7

Please sign in to comment.