Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
if (Cookies.get("CookieConsent") === "true") resolveCookieConsent();
}
render() {
Cookies.set("test", "nice")
return (
<div>
<header>
<img alt="logo" src="{logo}">
<h1>Welcome to React</h1>
</header>
<p>
To get started, edit <code>src/App.js</code> and save to reload.
</p>
{alert("yay!")}}
>
This website uses cookies to enhance the user experience.{" "}
<span style="{{">
This bit of text is smaller :O</span></div>