How can I call two consts in the same onclick event? One is to open a popup form and the other is to make an emoji explosion effect every time I click the button.
This is the code when the button is clicked it shows the popup form, but the emoji explosion does not appear.
const CTA = () => {
const [buttonPopup, setButtonPopup] = useState(false)
const explosion = (posX, posY) => emojisplosion({
emojis: ["