Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
That's right - write parallax in React.
But if you really want to, then "direct work with dom in react" and "component life cycle".
In short - write a component - a wrapper that renders the markup that your parallax needs, when this component is mounted - get the created dom - element (s), call your code on this block, it works, unmounts - do deinitialization if necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question