Easily refactor React/React Native source code extracting components and styles from the VSCode menu.
- Extraction:
- extract component to new file
- extract component to function
- Embed:
- Wrap element a component of choice (e.g. div, View)
- Style:
- Extract style from element to StyleSheet (only React Native)
Also creates a package.json for referencing components (e.g. import MyComponent from '@components/my-component'
)
extractcomponent.path
: components destination path (relative to project) (default: "src/components/")