This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {Link, Route, HashRouter} from 'react-router-dom'; | |
import './App.css'; | |
import Public from "./Public"; | |
import Protected from "./Protected"; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
class Protected extends Component { | |
render() { | |
return ( | |
<div> | |
<h1>Secure Zone</h1> | |
<p>Protected content.</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class Public extends Component { | |
render() { | |
return ( | |
<div> | |
<h1>Welcome</h1> | |
<p>This is public zone!</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am vthub on github. | |
* I am vthub (https://keybase.io/vthub) on keybase. | |
* I have a public key whose fingerprint is 54A7 BBDD 12BB 9FF6 80FA BB54 8F7C A348 3E36 19B2 | |
To claim this, I am signing this object: |
NewerOlder