DEV Community

Discussion on: What are HOOKS in React?

Collapse
 
mahmoudalfall profile image
mahmoud-alfall

hi, this was a good article for me as a beginner in react.
another thing that i don't understand is the files structure, i need to know what is app.js and index.
also i want to know how to gather components together and how to import external libraries like gsap.

Collapse
 
rahxuls profile image
Rahul

In brief:
For importing external libraries like GSAP you have to install npm package of gsap NPM - GSAP. So basically App Component is the main component in react which acts as a container for all other components.
The index.js simplifies the import.


New post coming related to understanding the structure of react. CHILL

Collapse
 
rahxuls profile image
Rahul

No issues. Article related to this coming ASAP. Just stay tuned. First i have thought to covered the basics and then may questions asked by you people .