提升React Native组件书写效率

56 阅读1分钟

每次写组件都需要写

import React from 'react';

这样配置一下 babel.config.js

image.png

每个组件就可以少写一行,少写一行提升一点点效率,何乐而不为呢?