since there's no 'src' folder in codesandbox demo file structure, the main property in package.json should be './index.js' directly, otherwise error will occur like 'Could not find entry file: /src/index.js. You can specify one in package.json by defining a main property.'
since there's no 'src' folder in codesandbox demo file structure, the main property in package.json should be './index.js' directly, otherwise error will occur like 'Could not find entry file: /src/index.js. You can specify one in package.json by defining a
main
property.'