Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 579 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 579 Bytes

VSCode > Extract react component

Core functionalities:

  • Extraction: extracts component to new file and embeds it in the current file. Props are automatically passed to the new component.

(Folder default src/components/NAME/index.js) >> package.json @components

  • to change the default folder, edit configuration "extractcomponent.path"

  • Embedding: wraps selected component in a component of choice (e.g. View, ScrollView )

  • Extract stylesheet inline

  • Extract method render