Extract to React
Jess Telford
(7 人评分) |2,000+ 位用户 | 来自
商店
|

概述
翻译

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

来自商店的评价 (0)

尚无人评价此扩展,查看 所有语言

留言

支持浏览器

适用于以下浏览器
内核要求
要求浏览器内核版本 ≥ 39.0

其他信息

文件类型
crx
版本
1.0.2 已同步至最新
更新日期
2019年1月16日 5年前
大小
489KiB
Manifest 版本
2
语言
查看全部1种支持的语言
权限
所属类别