
Extract to React
1,000+ users
Version: 1.0.2
Updated: January 16, 2019

Available in the
Chrome Web Store
Chrome Web Store
Install & Try Now!

Wheelchair Sports Paralympics Wall And Art Print

Google 2nd Generation Charcoal Nest Hub 7" Smart Display with Google Assistant | Best Buy

Office Depot Graphing Calculator - Office

National Geographic World Executive Map, Laminated, 46" x 30.5"

5 gal. #360C-2 Wickerware Flat Exterior Paint & Primer

New Era Men's Navy U.S. Paralympics Waves 9SEVENTY Stretch Snap Adjustable Hat - Navy
Extract all the HTML & CSS of any portion of any website directly into a ready-to-go React Component!
----
# Usage
- Quick start:
Inspect an element on the page > "Extract To React" tab > Extract the code to CodePen or JSFiddle.
- Advanced usage:
It is possible to split a monolithic component up into multiple nested components.
Find the elements you wish to become their own component in the "Elements" tab. Add an attribute called `data-component`.
Set the value of `data-component` to be the extracted name of the component:
<h1 class="heading" data-component="Heading">Hello, world!</h1>
<nav class="nav" data-component="Nav">
<ul class="list">
<li class="list-item" data-component="ListItem">#1</li>
<li class="list-item" data-component="ListItem">#2</li>
</ul>
</nav>
Will result in 3 components being extracted: `Heading`, `Nav`, and `ListItem`
----
# Bugs and Features
If you find a bug or have a feature request, please create an issue on GitHub: https://github.com/jesstelford /extract-to-react/issues
----
# Attribution
This project is based on excellent open source software:
* SnappySnippet: Chrome/Chromium extension that allows easy CSS+HTML extraction of specific DOM element. Created snippet can be then exported to CodePen, jsFiddle or JS Bin with one click.
(https://github.com/kdzwinel/SnappySnippet/issues)
* html-to-react-components: Extract annotated portions of HTML into React components as separate modules.
(https://roman01la.github.io/html-to-react-components/)
----
# Usage
- Quick start:
Inspect an element on the page > "Extract To React" tab > Extract the code to CodePen or JSFiddle.
- Advanced usage:
It is possible to split a monolithic component up into multiple nested components.
Find the elements you wish to become their own component in the "Elements" tab. Add an attribute called `data-component`.
Set the value of `data-component` to be the extracted name of the component:
<h1 class="heading" data-component="Heading">Hello, world!</h1>
<nav class="nav" data-component="Nav">
<ul class="list">
<li class="list-item" data-component="ListItem">#1</li>
<li class="list-item" data-component="ListItem">#2</li>
</ul>
</nav>
Will result in 3 components being extracted: `Heading`, `Nav`, and `ListItem`
----
# Bugs and Features
If you find a bug or have a feature request, please create an issue on GitHub: https://github.com/jesstelford /extract-to-react/issues
----
# Attribution
This project is based on excellent open source software:
* SnappySnippet: Chrome/Chromium extension that allows easy CSS+HTML extraction of specific DOM element. Created snippet can be then exported to CodePen, jsFiddle or JS Bin with one click.
(https://github.com/kdzwinel/SnappySnippet/issues)
* html-to-react-components: Extract annotated portions of HTML into React components as separate modules.
(https://roman01la.github.io/html-to-react-components/)
Related

HTML To React
236

HTML to React
3,000+

eXtract Snippet
6,000+

Realize for React
3,000+

React Inspector
6,000+

CSS Used
60,000+

React Performance Devtool
7,000+

click-to-react-component
767

React VT
664

JSON Viewer React
386

React Repositories New Tab
137

React Context DevTool
40,000+

Jinno: code any React component with AI
4,000+

React Stores Devtools Extension
1,000+

SnappySnippet
9,000+

SnipCSS
20,000+

React code finder
1,000+

CSS Scan
10,000+

CSSSteal
2,000+

Web Design Pirate
2,000+

PageRip (HTML + CSS Extract)
20,000+

Save All Resources
300,000+

Reactime
3,000+

Aspect
2,000+