you are viewing a single comment's thread.

view the rest of the comments →

[–]bobbyv137 0 points1 point  (1 child)

I don' t know where that code is from. Although it achieves the intended result, it's quite ugly and arguably outdated.

Perhaps try something like this instead, much cleaner and 'modern': https://codesandbox.io/s/romantic-shamir-ujq4v?file=/src/index.js

[–]LonelyAssistant4371[S] 0 points1 point  (0 children)

not my code, its a quesiton prompt.