UNPKG
reakit-warning
Version:
latest (0.6.2)
next (0.7.0-alpha.1)
0.7.0-alpha.1
0.6.2
0.6.1
0.6.0
0.6.0-alpha.4
0.6.0-alpha.3
0.6.0-alpha.2
0.6.0-alpha.1
0.6.0-alpha.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.5.0-alpha.1
0.5.0-alpha.0
0.4.1
0.4.0
0.4.0-alpha.0
0.3.1
0.3.0
0.2.0
0.1.0
Reakit warning
reakit/reakit
reakit-warning
/
ts
/
useWarning.d.ts
6 lines
(5 loc)
•
211 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Logs `messages` to the console using `console.warn` based on a `condition`. * This should be used inside components. */
export
declare
function
useWarning(
condition
:
boolean
, ...messages:
any
[]): void;