tengbao / vanta

Animated 3D backgrounds for your website
http://vantajs.com/
MIT License
5.55k stars 1.02k forks source link

Switch React docs to hooks-first #120

Closed karlhorky closed 2 years ago

karlhorky commented 2 years ago

Hi there, thanks for Vanta! Looks really cool :)

Since the new version of the React docs is also now hooks-first (see https://beta.reactjs.org/), I wanted to open a PR to switch the React docs here to also be hooks first, and also included a new example on JSFiddle.

karlhorky commented 2 years ago

I noticed that both React examples on JSFiddle (also the original one linked in the docs) don't really work as I would expect though, so maybe there's some bug preventing Vanta from showing up?

Screen Shot 2022-01-04 at 10 06 44
Ading163 commented 2 years ago

Hello! Man, I have the same problem as you

tengbao commented 2 years ago

yes, react hooks should be prioritized now. i updated the fiddle: https://jsfiddle.net/1mcr7x50/2/ and the readme: https://github.com/tengbao/vanta

karlhorky commented 2 years ago

Great, thanks @tengbao !