BHAnkur Singh I’m not very good with webpack, I usually use Create-react-app. Maybe change the “file name” path in the webpack config to “index.js” instead of “main.js”, good luck !Reply·Thread·Apr 26, 2020·ERROR in ./index.js Module build failed: SyntaxError: Unexpected token
BHIt’s really great for small projects you want to get done fast. But once you go down that rabbit hole, it’s hard to refactor if that I’s something you want to do in the future.Comment·Thread·Apr 26, 2020·Have you tried TailwindCSS? What are your thoughts?
BHYou don’t need the useEffect in there if your not using it. If you are import it with component from react.Comment·Thread·Apr 26, 2020·ERROR in ./index.js Module build failed: SyntaxError: Unexpected token