import React from "react";
const useEventListenerState = (initial) => {
	const [value, _setValue] = React.useState(initial);
	const valueRef = React.useRef(value);
	const setValue = (x) => {
		valueRef.current = x;
		_setValue(x);
	};
	return [valueRef, setValue];
};
export { useEventListenerState };

//# sourceMappingURL=useEventListenerState.js.map