react将多个公共组件归成一类,方便调用


目录结构

.
├── component                  # 公共组件存放
├   ├── example                
├   ├  ├── example1.ts             # 例子1
├   ├  ├── example2.ts             # 例子2
├   ├  ├── example3.ts             # 例子3
├   ├── example_index.ts       # example归类
├── app.ts

example_index.ts

export * from "./example/example1";
export * from "./example/example2";
export * from "./example/example3";

app.ts

import { Example1, Example2, Example3 } from "./components";


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM