---
title: "Discussion on \"HTML 5 Canvas, React Refs and TypeScript\" | Hashnode"
description: "Discussion on \"HTML 5 Canvas, React Refs and TypeScript\". Refs in React have gone through several changes since their introduction. With the release of hooks in React 16.8, useRef became a handy way to interact with refs, especially in functional components. However, as TypeScript has come to dominate the J..."
url: "https://hashnode.com/posts/html-5-canvas-react-refs-and-typescript/5f614337c08f260dbcebe07b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [HTML 5 Canvas, React Refs and TypeScript](https://hashnode.blainegarrett.com/html-5-canvas-react-refs-and-typescript?utm_source=hashnode&utm_medium=feed)

Refs in React have gone through several changes since their introduction. With the release of hooks in React 16.8, useRef became a handy way to interact with refs, especially in functional components. However, as TypeScript has come to dominate the J...

Sep 15, 2020 · 6 min read · hashnode.blainegarrett.com  
Read the article

-   [#html-canvas](https://hashnode.com/tag/html-canvas)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#dom](https://hashnode.com/tag/dom)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Blaine Garrett](https://hashnode.com/@blainegarrrett)

@blainegarrrett · Minneapolis, Minnesota, USA

  
[View profile](https://hashnode.com/@blainegarrrett)

Software Engineer and Artist

I&#39;ll find something good to put here.

## Responses 2

Markdown supported · ⌘↵ to post

[Sebastien Dubois](https://hashnode.com/@dSebastien)

[Jun 21, 2021](https://hashnode.com/posts/html-5-canvas-react-refs-and-typescript/5f614337c08f260dbcebe07b/comment/60d10c81a6a3a25dadf61d18)

Thanks for sharing this excellent article!

I'm diving into <canvas> with React, and was wondering about how to leverage TypeScript. Now I have the answer, thanks to you! :)

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Sep 16, 2020](https://hashnode.com/posts/html-5-canvas-react-refs-and-typescript/5f614337c08f260dbcebe07b/comment/5f61c5eddc74720d9b85eab9)

Wow! This is very informative.

Thanks for sharing [Blaine Garrett](https://hashnode.com/@blainegarrrett).
