Hm. Interesting library indeed, but somewhat weird tutorial. And even if it made some sense, please never name a setter function "get" anything:
```
const [protectedPage, setProtectedPage ] = useState(false)
const getProtection = (protect)=> setProtectedPage(protect)
```
Since there already is a setter, why make a redundant new one and name it confusingly?
Couldn't find comment function on the article, thus my comment is here..