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

Latest Version

Version
1.0.2
Update
January 16, 2019
Size
489KiB
Developer
Category
Users
2,000+
Rating
1.71429 ★
Manifest Version
2
Web Store Status
Languages Support
English (UK)
See more
Permissions
See more

Extract to React Extension

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:


Hello, world!





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

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Extract to React", "description": "Chrome/Chromium extension that allows easy HTML to React conversion.", "version": "1.0.2", "manifest_version": 2, "minimum_chrome_version": "39.0", "icons": { "16": "gfx/icon_16.png", "48": "gfx/icon_48.png", "128": "gfx/icon_128.png" }, "devtools_page": "devtools.html", "background": { "scripts": [ "js/background.js" ], "persistent": false }, "content_security_policy": "script-src 'self' https://www.google-analytics.com https://apis.google.com https://platform.twitter.com https://www.facebook.com; object-src 'self'"}
Read more

Similar Extensions

icon

HTML To React Extension · Productivity 2,000+ 2 ★ 41.97KiB

icon

HTML to React Extension · Developer Tools 2,000+ 4 ★ 342KiB

icon

eXtract Snippet Extension · Developer Tools 2,000+ 38 ★ 297KiB

icon

Realize for React Extension · Developer Tools 2,000+ 7 ★ 160KiB

icon

React Inspector Extension · Developer Tools 2,000+ 8 ★ 26.91KiB

icon

CSS Used Extension · Developer Tools 2,000+ 184 ★ 164KiB

icon

React Performance Devtool Extension · Developer Tools 2,000+ 11 ★ 170KiB

icon

click-to-react-component Extension · Developer Tools 2,000+ 5 ★ 79.5KiB

icon

React VT Extension · Developer Tools 2,000+ 2 ★ 1.51MiB

icon

JSON Viewer React Extension · Developer Tools 2,000+ 2 ★ 882KiB

icon

React Repositories New Tab Extension · Developer Tools 2,000+ 0 ★ 728KiB

icon

React Context DevTool Extension · Developer Tools 2,000+ 21 ★ 2.35MiB

icon

React code finder Extension · Developer Tools 2,000+ 5 ★ 2.95MiB

icon

React Stores Devtools Extension Extension · Developer Tools 2,000+ 0 ★ 716KiB

icon

SnappySnippet Extension · Developer Tools 2,000+ 9 ★ 2.24MiB

icon

SnipCSS Extension · Developer Tools 2,000+ 32 ★ 13.12MiB

icon

Jinno: code any React component with AI Extension · Developer Tools 2,000+ 38 ★ 18.37MiB

icon

CSS Scan Extension · Developer Tools 2,000+ 84 ★ 1.41MiB

icon

CSSSteal Extension · Developer Tools 2,000+ 46 ★ 557KiB

icon

Web Design Pirate Extension · Developer Tools 2,000+ 21 ★ 134KiB

icon

Save All Resources Extension · Developer Tools 2,000+ 335 ★ 4.73MiB

icon

PageRip (HTML + CSS Extract) Extension · Developer Tools 2,000+ 54 ★ 434KiB

icon

Reactime Extension · Developer Tools 2,000+ 33 ★ 803KiB

icon

CSS Extractor (Extracts style & media rules) Extension · Developer Tools 2,000+ 5 ★ 18.14KiB

User reviews

icon

Phillip Madsen (ID: 000000564179b165) Voted 1 ★ - Updated 11/19/2020 does not work

icon

Guillermo García (ID: 0000009b07f83c83) Voted 1 ★ - Updated 03/30/2020 doesn't import anything

icon

Taylor Bunker (ID: 000000bb1982f5c6) Voted 1 ★ - Updated 05/17/2019 Didn't work for me either.

icon

Simply (ID: 000000f4a95a0d24) Voted 1 ★ - Updated 02/14/2019 Don't seem to work at all

icon

Davidson Nascimento (ID: 000000db50122942) Voted 5 ★ - Updated 12/05/2017 Really work!