---
title: "Comment by KOTOBA AI on \"A Look At React Hooks: The New `use` Hook\" | Hashnode"
description: "I tried to use the use hook in TSX but even the latest @types/react doesn&#39;t have a type definition for that hook and it leads to extremely poor SEO due to t"
url: "https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c/comment/65898ba40940061cc9ea5f61"
---

[Discussion](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c)

Comment [A Look At React Hooks: The New \`use\` Hook](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c)

[KOTOBA AI](https://hashnode.com/@aiktb)

[Dec 25, 2023](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c/comment/65898ba40940061cc9ea5f61)

I tried to use the `use` hook in TSX but even the latest `@types/react` doesn't have a type definition for that hook and it leads to extremely poor SEO due to the fact that the hook doesn't go to the latest version, I can't find any information about this issue. Have you encountered this problem please?

[Victoria Lo](https://hashnode.com/@victoria)

[Dec 28, 2023](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c/comment/65898ba40940061cc9ea5f61#reply-658cf539f073040c2d172a91)

Hi [KOTOBA AI](https://hashnode.com/@aiktb), this Hook is not yet available officially in React. If you would like to test it out, make sure your react and react-dom package version is set to "experimental".

[KOTOBA AI](https://hashnode.com/@aiktb)

[Dec 28, 2023](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c/comment/65898ba40940061cc9ea5f61#reply-658d2c12f073040c2d19b3d9)

Hi [Victoria Lo](https://hashnode.com/@victoria), I have found the solution by adding the following field in tsconfig.json:

```
"compilerOptions": {
    "types": ["react/canary"],
  }
```

[Victoria Lo](https://hashnode.com/@victoria)

[Jan 6, 2024](https://hashnode.com/posts/a-look-at-react-hooks-the-new-use-hook/645e2eca8e9b452175a58b0c/comment/65898ba40940061cc9ea5f61#reply-6598fbe10fe390a9f916f13f)

Awesome [KOTOBA AI](https://hashnode.com/@aiktb) ! thanks for letting me know! :)
