Importing Texturecanvas to react project


I am trying to use Texturecanvas and i am following this pg

but i am having a problem in my project

is there a npm package because when i import it from babylon its saying texturecanvas is no a constructor.

You need a module import for React, the TextureCanvas extension github page (Texture Canvas | Babylon.js Documentation) has instructions for that. Alternatively, instead of the extension, you can use the core Babylon AdvancedTexture: Dynamic Textures | Babylon.js Documentation