I wrote a function and tried calling it in my JSX and it did not work. The page just did not render and constantly kept loading similar to an infinite loop. My goal is to pi