gencomp
GenComp is a vscode extension that generates a new component from the selected line(s) of code. Furthermore, it extracts the selected code and copies its imports and creates a new react component from it. DEMO: https://www.youtube.com/watch?v=3QkPesu2xHs InstallInstall through VS Code extensions. Search for Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
InstructionOnce you've installed the extension, open your project folder. To be able to generate components we need an output folder. To set an output folder, right-click on any folder and choose Now that you've setup your output path, you can now select JSX code to extract.
Right-click on your selection and choose After this you would see a License |