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

211
Views
does it make sense to have Pure logical (No rendering) react components?

I am new to ReactJS and trying to figure out a good design but couldn't reach a decision from Googling. Here is my problem:

I have some old JavaScript code that deals mostly with my app's WebSocket logics and a little bit of DOM manipulation using the WebSocket data. I wanted to refactor those code into React component because they seem much cleaner and maintainable. But from what I have gathered, React components are used for rendering HTML elements, which leaves me wondering whether it makes sense to have some pure logical React components that renders nothing or to keep all WS logic in my old JS and only refactor the parts that requires rendering.

Thanks!

over 4 years ago · Santiago Trujillo
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!