Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
Redux Toolkit Connect with Javascript Class

I recently integrated Redux ToolKit with my react app. I have this one component that is a JavaScript class, and I'm not sure how to connect redux with it.

I am exporting this class by instantiating the class. (ie: export let class = new Class())

Appreciate any help!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

From outside of React, you just import your store and interact with it. But be aware that there is no mechanism to update your class automatically when a certain store contents changes unless you write one on your own.

Edit: might have read your question wrong. If you are using a class component, you will have to use the connect api of react-redux. https://react-redux.js.org/tutorials/connect

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!