Skip to content

an issue with rendering 2 examples [useTrail, useSpring] in a page #1186

Answered by zirho
zirho asked this question in Support
Discussion options

You must be logged in to vote

I found the solution by memoizing the component.

const MemoBg = React.memo(Bg)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zirho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant