0

In my react app , I am creating a canvas element dynamically. Now, I want to access that DOM element from ComponentDidMount lifecycle method, however, I am not able to do that. Below is my code :
https://codesandbox.io/s/drawing-on-canvas-by-mouse-events-forked-ezrdgd

Any help will be much appreciated. Thanks

2
  • @noodlejs Could you pls answer this? Commented Aug 14, 2022 at 17:12
  • @Will Jenkins could you pls answer my question? Commented Aug 15, 2022 at 6:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.