originally from: https://gist.github.com/jonschlinkert/5854601
Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading
function AuthProvider(props) { | |
const [token, setToken] = useLocalStorage('token', ''); | |
return <AuthContext.Provider value={{ token, setToken }} {...props} />; | |
} | |
function useLogin() { | |
const { setToken } = useContext(AuthContext); | |
const login = async ({ username, password }) => { |
originally from: https://gist.github.com/jonschlinkert/5854601
Headings from h1
through h6
are constructed with a #
for each level:
# h1 Heading