E
E
evgeniy20242021-07-31 02:28:10
React
evgeniy2024, 2021-07-31 02:28:10

How to make a "sticky menu" in react?

How to make the menu stick when scrolling on react.js
I understand that you can use fixed, but it is desirable to ignore it
The problem is that the window.onscroll event is not processed in react, and I need a smooth scrolling of the menu when it reaches its size

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alice, 2021-07-31
@evgeniy2024

Hold

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question