Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
const [hide, setHide] = useState(false);
const demo1Styles = useStyles(demo1Refs);
const demo2 = useClassName(demo2Refs);
const demo3 = useClassName(demo3Refs);
return (
<>
<input checked="{hide}" type="checkbox"> setHide(!hide)} />
const CodeButton = ({
component = 'button',
children,
...restProps
}: BoxProps) => {
const styles = useStyles(styleRefs);
return (
export default ({ children }: CodeProps) => {
const styles = useStyles(styleRefs);
const { playroomUrl } = useConfig();
const snippet = cleanSnippet(
formatSnippet(
typeof children === 'string'
? children
: reactElementToJSXString(children, {
useBooleanShorthandSyntax: false,
showDefaultProps: false,
showFunctions: false,
filterProps: ['onChange', 'onBlur', 'onFocus'],
}),
),
);
return (