Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by H1Supreme

24 days ago

How do you handle routing with plain React?

3 comments

H1Supreme

Reply

codedokode  24 days ago

React is an implementation of View component of MVC, View is responsible for displaying Model contents, not for handling routes. You are trying to use the wrong tool.

  • yawaramin  13 days ago

    That's what we've been trying to tell you!

CooCooCaCha  24 days ago

Using built-in browser apis. Not sure what you’re getting at.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities