Folder structure:
├── app
├── index.js (start point in Webpack)
├── component
│ ├── Home──Home.js
| ├──index.js
│
component/Home/Home.js has my class written like - export class Home extends React.Component {}
component/index.js i had exported like - export {Home} from './Home/Home'
and I am Importing in index.js (starting point) import {Home} from './components'
Its working for me and the changes I want which is not working
In component/Home/Home.js want to export like export default class Home extends React.Component {}
In component/index.js i want to export like export Home from './Home/Home'
I want to import in index.js starting point import Home from './components'
import {Home} from './components- Ajay Narain Mathur