ᴋʙ
KPCKevin Powell - Community
•Created by ᴋʙ on 10/6/2023 in #front-end
Need help with exporting useref const.
in my app() function, i have all the content for the website imported as components.
And i want to modify the imported components via another component in HeaderNavigation using useRef however i cant seem to actually get the referenced element in my outside component, so i am guessing i am doing something wrong with exporting, or i have something wrong with useRef fundamentally.
App.js
NavMenu.js
This is the outside file that i want to import the ref's in : OmStaeck, Folkene, Karriere
26 replies