8 lines
147 B
JavaScript
8 lines
147 B
JavaScript
import {useContext} from 'react';
|
|
|
|
import {GameContext} from './context';
|
|
|
|
export default function useGame() {
|
|
return useContext(GameContext);
|
|
}
|