Answers for "react router refresh page 404"

2

react refresh 404 error

#paste this in nginx conf file
location / {
  if (!-e $request_filename){
    rewrite ^(.*)$ /index.html break;
  }
}
Posted by: Guest on June-24-2021
0

react router refreshes page

import React from "react";
import { Link } from 'react-router-dom';

export class ToolTip extends React.Component {
  render() {
    return (
      <Link to="/My/Route">Click Here</Link>
    )
  }
};
Posted by: Guest on May-05-2020

Browse Popular Code Answers by Language