# Referencing the 'babylonjs-materials' dependency in the react project and using 'CustomMaterial'?

**URL:** <https://forum.babylonjs.com/t/referencing-the-babylonjs-materials-dependency-in-the-react-project-and-using-custommaterial/9851>\
**Category:** Questions\
**Created:** [April 9, 2020, 8:56am UTC](https://forum.babylonjs.com/t/referencing-the-babylonjs-materials-dependency-in-the-react-project-and-using-custommaterial/9851 "2020-04-09T08:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [April 9, 2020, 8:56am UTC](https://forum.babylonjs.com/t/referencing-the-babylonjs-materials-dependency-in-the-react-project-and-using-custommaterial/9851/1 "2020-04-09T08:56:04Z")

</div>

I tried to load the babylonjs-materials dependency and use the CustomMaterial in the react project, but it didn’t work.My steps are as follows:  
NPM installation – save babylonian materials (" babylonian materials “:” ^ 4.1.0 ")  
Where needed:  
Import \* from ‘babylonjs’ as Babylon;  
Imported babylonian - materials; ![aaa](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/92568232248886d7bd880cffca70858399620b90.jpeg)

 ![lALPGoU8bwA8r3fNASnNA9M_979_297.png_720x720q90g](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/817bb8929c4c081a14e3a943540c3db3155a9cce.jpeg) ![sd](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/d/d169ad6c990b2dcebbabed5dff7ae4b24ee68bad.jpeg)

---

<div class="post-metadata">

**Author:** ![yunianhzuang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yunianhzuang/32/5839_2.png) [@yunianhzuang](https://forum.babylonjs.com/u/yunianhzuang)\
**Post date:** [April 9, 2020, 9:23am UTC](https://forum.babylonjs.com/t/referencing-the-babylonjs-materials-dependency-in-the-react-project-and-using-custommaterial/9851/2 "2020-04-09T09:23:21Z")

</div>

It has been successfully quoted:  
Just load the ‘CustomMaterial’ class when referenced  
And then I’m going to instantiate it
