Dudeman3000
Dudeman3000

Reputation: 601

Incorrect React.js Route path value

I've just added a React.js page to my .Net MVC site.

I think I've got the path value in my component wrong but I can't figure out what it's supposed to be.

enter image description here

Upvotes: 0

Views: 112

Answers (2)

Tholle
Tholle

Reputation: 112787

You are giving the component to the Route prop Component. It's called component with a lower cased c.

<Route exact path="/CuteGoatWebsite/Home/React" component={Home} />

Upvotes: 1

Dudeman3000
Dudeman3000

Reputation: 601

@Tholle answered my question. I had "Component" with a capital C instead of "component"

Upvotes: 0

Related Questions