Last active
March 12, 2020 13:33
-
-
Save roeib/8267850bbcb42f35f50ba73d44da8dfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const App = () => { | |
const [isOn, setOn] = useState(false); | |
return <div style={{overflow: "hidden"}}> | |
<Button onClick={e => {setOn(!isOn)}} > | |
Click me | |
</Button> | |
{ | |
isOn && | |
<Portal> | |
<Tooltip> | |
<div>This tooltip will not cut off!</div> | |
</Tooltip> | |
</Portal> | |
} | |
</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment