Extract to React

CRX ID
fbdmadiknkkdfcgjdbmddklighibfomm
Status
No Privacy Policy Live on Store
Description from extension meta

Chrome/Chromium extension that allows easy HTML to React conversion.

Image from store
Extract to React
Description from store

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/)

Latest reviews

Phillip Madsen 2020-11-19

does not work

Phillip Madsen 2020-11-19

does not work

Guillermo García 2020-03-30

doesn't import anything

Guillermo García 2020-03-30

doesn't import anything

Benson Childress 2019-12-10

yeah, sadly does not work. Connection error when trying to connect to CodePen

Taylor Bunker 2019-05-17

Didn't work for me either.

Taylor Bunker 2019-05-17

Didn't work for me either.

Simply 2019-02-14

Don't seem to work at all

Simply 2019-02-14

Don't seem to work at all

Davidson Nascimento 2017-12-05

Really work!

Davidson Nascimento 2017-12-05

Really work!

Statistics

Installs
1,000
Market
Chrome Web Store
Category
Rating
1.71 (7 votes)
Last update
2019-01-17
Version 1.0.2
Languages
en-GB