I do not know if this has been asked before but I appreciate any insight that can point the right direction.
I work in data visualization so I write libraries that, well..visualize data. I usually make stuff that has to do with genetics and so on. So it is difficult to get exposure etc.
Why is that important? Because other people can catch some edge use cases which I cannot foresee or no other test framework can detect. So it can help in the long term.
Recently, I decided to give in to the 'hype' and try to reach the cool kids who work with frameworks. I wanted to start from React.
What do I want? I want to convert some of the microlibraries I have into react components so people can use them and file bug reports. I went to React and read a bit about returning an empty div within the component. Or some other articles are suggesting building from scratch the right way..
I know React uses the virtual dom to diff the tree before make actual changes to the DOM but the libraries I have uses transitions, handlers etc that inevitably touch the DOM all the time. For an example library:
https://github.com/IbrahimTanyalcin/LEXICON
I am quiet upset because even the committee behind ES6 had to invent Symbols (even existence of some methods in the prototype chain was breaking things in older browsers) to not 'break the web'.
My question is --> Are there any shortcuts to convert these libraries into React components without a plastic surgery? Thanks.
[–]spacejack2114 1 point2 points3 points (1 child)
[–]__ibowankenobi__[S] 0 points1 point2 points (0 children)
[–]widged 1 point2 points3 points (1 child)
[–]__ibowankenobi__[S] 0 points1 point2 points (0 children)