-
Hello, I am a total beginner with Gatsby and more or less in coding. In a project, I would like to make use of the Link component in the header component displaying whether it is active or not. I generally figured how to style the Link component using activeClassName, but I'd like to render a styled line as a div underneath the Link component based on whether Link is active or not. Now, I cannot wrap my head around how to conditionally do that. I thought I might
I'd appreciate it if anyone could point me in the right direction. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The latter is probably more idiomatic with react. What did you try? It should be as straightforward as you outlined. |
Beta Was this translation helpful? Give feedback.
The latter is probably more idiomatic with react. What did you try? It should be as straightforward as you outlined.