Good morning, I'm creating a collapsible element ...
# javascript
d
Good morning, I'm creating a collapsible element in my Kotlin JS project and I'd like to follow this React example (https://medium.com/edonec/build-a-react-collapsible-component-from-scratch-using-react-hooks-typescript-73dfd02c9208) and use a Fontawesome cheveron icon for collapsing and uncollapsing the object. Trouble is that I'm having a bit of trouble figuring out what to put in the type wrapper and gradle script like how the Kotlin JS example website imports ReactYouTubeLite and React Share (https://play.kotlinlang.org/hands-on/Building%20Web%20Applications%20with%20React%20and%20Kotlin%20JS/07_Using_Packages_From_NPM). NPM page fore react-fontawesome: https://www.npmjs.com/package/@fortawesome/react-fontawesome So I guess my questions are: 1. What are the gradle implementation lines supposed to look like? My best guess is something like
implementation(npm("@fortawesome/react-fontawesome", "~0.1.16"))
2. What do I use as the JsModule and JsName for the type wrapper 3. It looks like the free-solid NPM used in the medium example is depricated, so should I import the actual icons from the https://www.npmjs.com/package/@fortawesome/fontawesome-free NPM?