Skip to content

No way to make active link on scroll in different components using .map() #630

Closed

Description

@nicitaacom

No way to make active link on scroll in different components using .map()
I want make something similar to this
image

I want here ser inView - category.id
And in Category.tsx I want create ref
image

But its write me that I redeclarete variable
image

Activity

  1. nicitaacom commented on Jun 15, 2023

    @nicitaacom
    Author

    Here I want set inView
    image

  2. thebuilder commented on Jun 15, 2023

    @thebuilder
    Owner

    You can't use a hook inside a loop.

  3. nicitaacom commented on Jun 15, 2023

    @nicitaacom
    Author

    You can't use a hook inside a loop.

    I know man
    But how I can create something similar to
    https://user-images.githubusercontent.com/39565703/246155279-2104185d-81e4-4d14-90a8-e542907aa9b3.png

  4. Repository owner locked and limited conversation to collaborators on Jun 17, 2023
  5. converted this issue into a discussion #631 on Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions