I am very newbie with React and React native.
I have a folder with several components, I've been able to create an index.js file to export all components inside the folder, so in other components I can do:
# /components/OneComponent.js
...
export { OneComponent }
# index.js
import { OneComponent } from './components'
```
Now I am working with Redux, and I want to accomplish the same thing, but I don't know how to do it. In my component I export the component as follows:
# /component/OneComponent.js
export default connect(mapStateToProps, { myFunction})(OneComponent);
And it should be as follows as I guess
export { connect(mapStateToProps, { myFunction})(OneComponent) };
But it doesn't compile.
import { OneComponent } from './components'it is undefined.