Ask coding questions

← Back to all posts
jQuery in NextJS
RayhanADev (2526)


Is there any way to use jQuery features in NextJS? I'm remaking my personal site and I really want to use some jQuery features but it doesn't work :/.

Answered by RoBlockHead (521) [earned 5 cycles]
View Answer
RoBlockHead (521)

Generally, libraries that interact with the DOM are not ones that can be used with React components. here's an explanation on why not to use jQuery with React.

RayhanADev (2526)

@RoBlockHead aw okay gotcha. That's a bit saddening but understandable. Thanks!

RayhanADev (2526)

@RoBlockHead also just out of curiosity how long have you been on Replit?

RoBlockHead (521)

@RayhanADev Started using Replit in early 2019, created this account in mid-2020