Commit 46f8ffb0 by Ashiqur Rahman

Upload New File

parent 6060daea
import React, { Component } from 'react';
import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'
import './App.css';
//import './bootstrap.css';
class App extends Component {
render() {
return (
<div className="App">
<Router>
<Route
path='/'
component={() => <button onClick = {() => window.location.href = 'https://google.com.bd'}>Redirect</button> }/>
</Router>
</div>
);
}
}
export default App;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment