Answer the question
In order to leave comments, you need to log in
Doesn't recognize jsx when I add package.json, how to fix it?
There is an App.jsx file, everything <h1>Hello World</h1>
works fine in it in rendering, but if I put this file in a separate folder and next to the file I create a package.json file with the following content:
{
"name": "App",
"main": "App.jsx"
}
Answer the question
In order to leave comments, you need to log in
...but if I put this file in a separate folder and next to the file I create a package.json file with the following content...
module.exports = {
entry: './path/to/my/entry/file.js'
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question