Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ben Munat yukster

🎯
Focusing
View GitHub Profile
View react nav weirdness.js
// App.js:
export default function App(props) {
const [isLoadingComplete, setLoadingComplete] = useState(false);
const [state, dispatch] = React.useReducer(
(prevState, action) => {
switch (action.type) {
case "RESTORE_TOKEN":
return {
...prevState,