React Hooks w imported react-icons

This solution utilizes React's useState and useEffect hooks, the map function to render the array of FAQs, and icons imported via skypack from the react-icons package.


Requested feedback

I tried to import from react-icons by going to Settings -> JS -> Add Packages but that did not actually work... has anyone had luck using packages from npm within codepen? I ended up having to import from a skypack link...

Comments

You must be signed in to post a comment

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.