Skip to content

Missing Switch Import - React Loadable Example #1458

Open
@roccoluke

Description

@roccoluke

🐛 Bug report

Current Behavior

  1. Install react loadable example.
  2. Start the application in development.
  3. Reference error: Switch is not defined.

Expected behavior

Works without errors.

Suggested solution(s)

Import the Switch component in App.js

import { Route, Switch } from "react-router-dom";

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions