asenka0301/frontend-bootcamp-project-12

View on GitHub
frontend/src/hooks/index.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { useContext } from 'react';

import { AuthContext, SocketContext } from '../context/context';

const useAuth = () => useContext(AuthContext);
const useSocket = () => useContext(SocketContext);

export { useAuth, useSocket };