From d7bae728c389e65f498a5bd97b2202edd9131ad5 Mon Sep 17 00:00:00 2001 From: danab Date: Tue, 3 Dec 2024 16:43:10 -0500 Subject: [PATCH] Remove reference to `myMesh` ref I don't think it's required for these simple examples. --- docs/tutorials/events-and-interaction.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/events-and-interaction.mdx b/docs/tutorials/events-and-interaction.mdx index cfa1464689..7e0c0b4853 100644 --- a/docs/tutorials/events-and-interaction.mdx +++ b/docs/tutorials/events-and-interaction.mdx @@ -35,7 +35,7 @@ From this we can see that what we need to do is use the old `onClick` event we u Let's add it then: ```jsx - alert('Hellooo')} ref={myMesh}> + alert('Hellooo')}> @@ -52,7 +52,7 @@ const [active, setActive] = useState(false) After we have this we can set the scale with a ternary operator like so: ```jsx - setActive(!active)} ref={myMesh}> + setActive(!active)}>