Dev HelpersOpen library
← Back

Block Scope · code 01

Preserved from the original JavaScript Field Guide. Some entries are React fragments that require the surrounding component.

Open this example in the interactive library

Source code

<>
    {alertVisible && (
        <Alert onClose={() => setAlertVisibility(false)}>Alert!!</Alert>
    )}
    <Button
        type='primary'
        text='button!!!'
        onClick={() => {
            // navigator.clipboard.writeText("test-031")}}
            setAlertVisibility(true)
        }}
    />
    <BlockScope />
</>