I have the following routes in my react app:
<Route exact path="/" component={HomeScreen} />
<Route exact path="/:category" component={HomeScreen} />
<Route exact path="/:category/:id" component={PostDetailScreen} />
<Route exact path="/posts/new" component={CreatePostScreen} />
When I go to /posts/new my app not only renders CreatePostScreen but also PostDetailScreen. I think it interprets :category = posts and :id = new.
However, I am stuck. What am I doing wrong? I just want to have the /posts/new route rendering CreatePostScreen.