From 76a0c52e2c719d116bfea757856c0488a2de1ff4 Mon Sep 17 00:00:00 2001 From: Caleb! <48127194+kaf-lamed-beyt@users.noreply.github.com> Date: Tue, 25 Feb 2025 21:54:17 +0100 Subject: [PATCH] chore: add console warning (#2332) --- src/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.js b/src/index.js index 52641f187..72b53a1ee 100644 --- a/src/index.js +++ b/src/index.js @@ -22,6 +22,14 @@ async function render () { if (initialData && process.env.NODE_ENV !== 'production') { console.log('intialising store with data from cache', initialData) } + console.log( + '%cStop!', + 'color: red; font-size: 40px; font-weight: bold; text-shadow: 2px 2px 0 black;' + ) + console.log( + '%cThis is a browser feature intended for developers. If someone told you to paste something here, they might be trying to steal your data!', + 'color: black; font-size: 16px; font-weight: bold; background: yellow; padding: 4px; border-radius: 4px;' + ) const store = getStore(initialData) ReactDOM.render(