0

if we are including bootstrap in our admin panel then dependency is jquery. This is right way to include jquery with react js or any other alternative.Like i was using dropify plugin but for this i need jquery because of plugin dependecy. What is best approach in reactjs for jquery dependecy plugins

1 Answer 1

1

I think typically it's best not to use jQuery and React together. I ran into some issues with it using Foundation and React. Mostly relating to when jQuery was loaded vs. when a component was rendered. That may have just been my particular situation though.

For Bootstrap specifically, you should consider React Bootstrap. It is components styled with Bootstrap CSS, but doesn't rely on either jQuery, or bootstrap.js.

If you really need jQuery, I don't think there's any harm in just including a <script> for it in your HTML.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.