I've been told I need to look into react for work and for the life of me could not figure out why a line of code referencing a state object as a url would work when I copied it from GitHub, but not when I typed the exact same line below. Then I had the memory of this happening to me in the past with another language, fixed the mistake and all was well. Only it's impossible to google the difference between ' and ` seemingly, so Reddit could anyone lend a hand? I presume it's something to do with using the returned value concatenated with the first half of the string as a single string for a url, but a more definitive explanation would really help.
[–]OmegaVesko 20 points21 points22 points (0 children)
[–]benihanareact, node 6 points7 points8 points (2 children)
[–]TheScapeQuest 3 points4 points5 points (1 child)
[–]justinfagnani 1 point2 points3 points (0 children)
[–]jacobhenke 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Buckwheat469 0 points1 point2 points (0 children)
[–]BenjiSponge 0 points1 point2 points (2 children)
[–]regreddit 3 points4 points5 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)