Hey, ReactJS newb here. I’m trying to replace some icons with Fontawesome equivalents, so I installed Fontawesome’s react components. Problem is, when I try to import them as per the Fontawesome website, I get the error “require is not defined.” I’m building the project with babel and grunt, and from what I can tell that blocks any use of the “import” keyword because it transpiles it to “require” which isn’t defined. Any way to get around this?
submitted by /u/psychoclast