shaaijs / html-element-to-react Goto Github PK
View Code? Open in Web Editor NEWConvert DOM elements to React elements
License: MIT License
Convert DOM elements to React elements
License: MIT License
Currently the converter covers limited HTML tags which do not allow children
or textContent
, e.g. <img>
and misses tags like <video>
, <input>
etc. Not an urgent issue, but will have to be solved whenever new tags show up in the content.
I don't understand - why for now this library handles only img
, video
and audio
nodes here https://github.com/shaaijs/html-element-to-react/blob/master/src/index.js#L50-L56?
I'm facing this weird trouble with creating VDOM for hydraing <ul><li/></ul>
- and because of this defect react breaks.
merely installing this module makes my Expo app break. I get something like:
# npm start
@ start /Users/ekkis/dev/tst
expo startStarting project at /Users/ekkis/dev/tst
Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
Error: React Native is not installed. Please runnpm install
in your project directory.
Couldn't start project. Please fix the errors and restart the project.
Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start:expo start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ekkis/.npm/_logs/2020-02-06T02_01_02_562Z-debug.log
if I remove the module, app works again. is it fixable?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.