This is a simple for loop that runs 80 times but only every 100 ms. Each time it runs, it pushes a Y coordinate for a character into the stillChars state array. The stillChars state array is mapped through to create a sequence of text elements directly underneath eachother. See this video to see the animation Code Sandbox Desired behavior:
Tag: react-three-drei
Conversion React Typescript component into Javascript gives errors
I am playing with React Fiber and React Drei but i do not want to use Typescript like in the examples i have found in their git I have converted the following example Stars.tsx with typescriptlang tool This is the output Then i have paste this Stars component in my codesandbox The component is now commented at the row 28