# Regarding upgradation

**URL:** <https://discourse.threejs.org/t/regarding-upgradation/15237>\
**Category:** Questions\
**Tags:** react\
**Created:** [May 15, 2020, 4:31am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237 "2020-05-15T04:31:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 15, 2020, 4:31am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/1 "2020-05-15T04:31:42Z")

</div>

Hello Everyone,

I am trying to upgrade this package [https://www.npmjs.com/package/react-container-3d](https://www.npmjs.com/package/react-container-3d) to the latest version of three and react , react upgradation is fine for me that i handled but due to the latest three package when i am trying to do mainContainer.getCamera() instanceof THREE.Perspective so it is always givng me false and this may be the cause of raycasting stop working , i need help to upgrade it to the lastest three version so i can utilize the three latest feature please help me in this .  
Before upgradation everything is working fine

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [May 15, 2020, 5:01am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/2 "2020-05-15T05:01:50Z")

</div>

Have you tried reaching out to the maintener of react-container-3d? We generally can’t help with updating 3rd party plugins here.

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 15, 2020, 5:04am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/3 "2020-05-15T05:04:08Z")

</div>

Yes i did thats why it is working fine with the react latest version i would be great if you please help me in this

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 15, 2020, 11:56am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/4 "2020-05-15T11:56:40Z")

</div>

Hello Everyone

so this is the attached zip file of my demo project i am trying to upgrade the version of three js so i use the latest version here what is observe after upgrading the reat-container-3d and react-cubeview in the setup method in app.js the scene object is giving me false(scene instanceof THREE.Scene) thats why the upgradation is failed  
please i stretch my head a lot i need help from the three js community [demo-project.zip](https://discourse.threejs.org/uploads/short-url/h1wp2BTxIojKMko4FeHRftOlPuh.zip) (50.9 KB)

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 15, 2020, 1:08pm UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/5 "2020-05-15T13:08:41Z")

</div>

@threejs community no thoughts on this i need suggesstion

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [May 17, 2020, 6:10am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/6 "2020-05-17T06:10:19Z")

</div>

My only suggestion would be to avoid using packages that are not actively maintained, or at least be prepared to have to update them yourself.

Otherwise, you could try using [react-three-fiber](https://github.com/react-spring/react-three-fiber).

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 17, 2020, 7:53am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/7 "2020-05-17T07:53:21Z")

</div>

how about using the core three js and remove the package dependency because i see react-three-fiber dont have any docs on instancing and even other new feature of three js we have to write core three js code instead of react-three-fiber

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [May 17, 2020, 7:54am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/8 "2020-05-17T07:54:20Z")

</div>

It’s certainly possible to use three.js + React without any plugins. I can’t help you with that, however.

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 17, 2020, 8:20am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/9 "2020-05-17T08:20:55Z")

</div>

No i only asked that it is better to use three directly rather than the plugin and i know how to setup thanks sir for your help

---

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [May 25, 2020, 7:40am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/11 "2020-05-25T07:40:57Z")

</div>

no point in duplicating docs, r3f is just another way to express threejs. it isnt reliant on maintainers when threejs adds new features, it will be able to use them declaratively (or, if you like, imperatively) without update. this is possible because it’s a reconciler, not a binding. you yourself decide which threejs version you use, it could be version 1, or latest - r3f only has a peerDependency on it.

for example, threejs introduced instances, the same day mrdoob published it i wanted to give it a try: [https://codesandbox.io/s/r3f-instanced-colors-8fo01](https://codesandbox.io/s/r3f-instanced-colors-8fo01) no changes in r3f for this ofc.

---

<div class="post-metadata">

**Author:** ![Alex](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alex/32/9027_2.png) [@Alex](https://discourse.threejs.org/u/Alex)\
**Post date:** [May 25, 2020, 8:00am UTC](https://discourse.threejs.org/t/regarding-upgradation/15237/12 "2020-05-25T08:00:35Z")

</div>

thanks and i agree on this sir i found the solution of my issue but forget to close this ticket
