python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
ref scrollIntoView does not work with behavior smooth on react
I am creating a component that will hold a dynamic list of elements and for styling reasons, I need to keep the title for each section in a sticky nav menu.
As the user scrolls up and down the list of...
Gareth Townsend
Votes: 0
Answers: 2
Why is ForwardRef causing error when using pair tag
I have 3 tsx (jsx) files in my react app:
My index.tsx:
import ReactDOM from 'react-dom';
import Page from './Page';
ReactDOM.render(
<Page />,
document.getElementById('root')
);
Then my...
Petr Marek
Votes: 0
Answers: 1
Why is SectionList ref.current always undefined?
I am trying to use the scrollToOffset and scrollToIndex that SectionList provides. However, the SectionList ref I am using is always undefined when using ref.current.
In my class component I have the ...
pfinferno
Votes: 0
Answers: 0
Cannot destructure ref property as it is undefined trying to use a multiple ref context
I want to make a ref context, using that context's refs in my sections and then consuming the context in my navbar to use intersectionObserver.
Trying to achieve this at first i created a context with...
Mat
Votes: 0
Answers: 1