Skip to content

Instantly share code, notes, and snippets.

@sankita15
Created December 27, 2019 11:03
Show Gist options
  • Save sankita15/f1d91bd48a6a0fd2b7226ea32dfeab0b to your computer and use it in GitHub Desktop.
Save sankita15/f1d91bd48a6a0fd2b7226ea32dfeab0b to your computer and use it in GitHub Desktop.
Redirect to invitation page
import React from "react";
import GuestInvitation from './component/GuestInvitation'
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
const App = () => (
<Router>
<Switch>
<Route exact path="/invite">
<GuestInvitation />
</Route>
</Switch>
</Router>
);
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment