Open samir-ch-2010 opened 8 months ago
Please use the following piece of code:
export default function Button() {
function handleClick() {
alert('Button clicked!');
}
return (
<button onClick={handleClick}>
Click me
</button>
);
}
i cannot confirm this issue within a clean environment. please provide the steps to reproduce the issue within a clean wordpress installation
WordPress Version
6.4.3
Enlighter Version
4.6.1
Editing method
Gutenberg Blocks
What happened?
Getting error: "The response is not a valid JSON response." with the following piece of react code.
export default function Button() { function handleClick() { alert('Button clicked!'); }
return (
); }
What browsers are you seeing the problem on?
Chrome
Your settings (debug)
I've read the docs/troubleshooting guidelines
The bug/issues appears in a clean WordPress environment