Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>jsx-extractorNew to Visual Studio Code? Get it now.
jsx-extractor

jsx-extractor

lesaaly

| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🚀 JSX Extractor

🧩 A VS Code extension that helps you extract selected JSX code into a standalone React component in just a few seconds.


✨ Features

  • 🔹 Extract JSX code into a new .tsx file
  • 🔹 Enter a custom component name with validation
  • 🔹 Automatically insert the new component and import it
  • 🔹 Clean and minimal UX

🎯 How to Use

  1. Select JSX code inside a .tsx file
  2. Press Ctrl/⌘ + Shift + P and run Extract JSX to React Component
  3. Enter a name for your new component (e.g. ProductCard)
  4. Done! Your JSX will be:
    • moved to a new component file
    • inserted as <ProductCard />
    • imported at the top of the current file

🎥 Demo

Coming soon — insert demo gif here

Demo


📦 Installation

Via VS Code Marketplace:
👉 JSX Extractor — Marketplace

Or from within VS Code:

👉 Extensions → Search: JSX Extractor → Install

👩‍💻 Author

Made with ❤️ by @lesaaly


📄 License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft