ES6, how can you export an imported module in a single line?

前端 未结 6 651
梦毁少年i
梦毁少年i 2020-11-29 21:42

I\'d like to the following but with a single line, if possible:

  • import Module from \'./Module/Module;\'
  • export Module;
  • <
6条回答
  •  忘掉有多难
    2020-11-29 21:53

    For React Native components this syntax works for me:

    export {default} from 'react-native-swiper';
    

提交回复
热议问题