Skip to content

🎥 Make videos programmatically with React

323 B
Raw Blame
import {createContext} from 'react';

export type FastRefreshContextType = {
	fastRefreshes: number;
	manualRefreshes: number;
	increaseManualRefreshes: () => void;
};

export const FastRefreshContext = createContext<FastRefreshContextType>({
	fastRefreshes: 0,
	manualRefreshes: 0,
	increaseManualRefreshes: () => {},
});