UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

14 lines 542 B
import * as React from 'react'; /** * Wrapper for two `useState` hooks where only one of the values can be true at a time. * @param initialValue1 * @param initialValue2 */ export declare function useMutuallyExclusiveState(initialValue1: boolean, initialValue2: boolean): [ value1: boolean, setValue1: React.Dispatch<React.SetStateAction<boolean>>, value2: boolean, setValue2: React.Dispatch<React.SetStateAction<boolean>> ]; export default useMutuallyExclusiveState; //# sourceMappingURL=useMutuallyExclusiveState.d.ts.map