DEV Community

Samuel Grasse-Haroldsen
Samuel Grasse-Haroldsen

Posted on

1 1

A Single Slash

A Single Slash /

Just spent an hour trying to figure out what was going wrong in my routing. It was a forward slash. A forward slash.
Before:

<Route exact path="stacks/:id" component={props => <Quiz {...props} />} />
Enter fullscreen mode Exit fullscreen mode

After:

<Route exact path="/stacks/:id" component={props => <Quiz {...props} />} />
Enter fullscreen mode Exit fullscreen mode

See the difference?
Stitch Pulling His Eyelids
What tiny mistakes have slowed you way down?

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay