import * as React from 'react' ; const LightboxPage = ( ) => { const [ show , set ] = React . useState ( false ) ; const ref = React . useRef ( null ) ; return ( < div > { } < button ref = { ref } onClick = { ( e ) => set ( true ) } > Focus Ref < /button> { } { } { } { } < /div>); } ; export default LightboxPage ;