From fd3e3280a2590be9ca074a172c535990a5035649 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 26 Dec 2022 00:11:58 -0500 Subject: Add a proxy option for static assets. Fix the paste view handlers. --- paste-ui/src/stateExample.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 paste-ui/src/stateExample.js (limited to 'paste-ui/src/stateExample.js') diff --git a/paste-ui/src/stateExample.js b/paste-ui/src/stateExample.js new file mode 100644 index 0000000..91fee18 --- /dev/null +++ b/paste-ui/src/stateExample.js @@ -0,0 +1,32 @@ +import { useState } from 'react'; +export default function MovingDot() { + const [position, setPosition] = useState({ + x: 0, + y: 0 + }); + return ( +
{ + setPosition({ + x: e.clientX, + y: e.clientY + }); + }} + style={{ + position: 'relative', + width: '100vw', + height: '100vh', + }}> +
+
+ ); +} \ No newline at end of file -- cgit v1.2.3