From 261ee123fcb717be3bd3278f5b432156e1c7b483 Mon Sep 17 00:00:00 2001 From: danab Date: Wed, 4 Dec 2024 03:28:46 -0500 Subject: [PATCH] docs: remove reference to `myMesh` ref (#3405) 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)}>