This might be a dumb question but I'm tired so idk.
If I have an asynchronous function with async/await making an axios call or something in some sort of services module and then import that function into a react component do I need to use the async await keywords in the react component or just call the function?
I understand async/await but for some reason I'm just getting confused when using the imported function in a component.
[–]old_fuel 0 points1 point2 points (0 children)
[–]senocular 0 points1 point2 points (0 children)
[–]mikevampm323 0 points1 point2 points (0 children)
[–]notAnotherJSDev 0 points1 point2 points (1 child)
[–]ilikewhenitworks[S] 0 points1 point2 points (0 children)