Skip to content
Discussion options

You must be logged in to vote

As I replied in Discord

They basically want you to replace the <NavLink/> component with your new <QueryNavLink/> component. No other changes needed. Remember components aren't regular functions. You invoke them via JSX and pass props.

.map((invoice) => ( <QueryNavLink style={({ isActive }) => ({ display: "block", margin: "1rem 0", color: isActive ? "red" : "", })} to={`/invoices/${invoice.number}`} key={invoice.number} > {invoice.name} </QueryNavLink> ))}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FightTheByte
Comment options

Answer selected by FightTheByte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants