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

Comment by H1Supreme

2 months ago

How do you handle routing with plain React?

3 comments

H1Supreme

Reply

codedokode  2 months 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  1 month ago

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

CooCooCaCha  2 months 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