2 ms·
Why tie this to a specific framework when you can make it more generally applicable? (I'm not a React user)
by amelius 8y ago
Why tie this to a specific framework when you can make it more generally applicable?
(I'm not a React user)
- ng12 8y agoBecause React is a framework built around reusable components. As a React user I'm much less likely to use your library if there's no React bindings.
- amelius 8y agoThat sounds a little selfish; think of people using other frameworks. Also, in this particular case, the graphics are simply two layers of SVG: an image of a ghost, backpack, browser, etc. and superimposed on top of that a "mood". You can compose these images with two lines of CSS, no React required.
- leppr 8y agoBut then it wouldn't make Hacker News front page would it ?
- mateuszf 8y ago> That sounds a little selfish; think of people using other frameworks. Or people using other frameworks could be not selfish and use React. If she/he's the one giving stuff for free - it's on her/his terms.
- slig 8y agoCan you share the two lines of CSS that would make something like this work? <div style="width: 200px" class="kawaii-backpack kawaii-happy"></div> or this: <div style="width: 200px"> <img src="kawaii-backpack.sgv" /> <img src="kawaii-happy.svg" /> </div> Edit: it should also work with a color user defined color.
- sydd 8y agoWebcomponents were invented to do this. You just need a polyfill for now.
- deleted 8y ago[deleted]
- grzm 8y agoThe license is MIT. (https://github.com/miukimiu/react-kawaii/blob/master/license https://github.com/miukimiu/react-kawaii/blob/master/license) If you would like to port this to something else, you're free to do so. Expecting someone else to write software that meets your particular needs (see your comment down below "That sounds a little selfish") itself sounds a little selfish and entitled. If you think this library would benefit from a more general approach, you could also contribute back, as a number of others have already done.
- amelius 8y ago> Expecting someone else to write software that meets your particular needs You misunderstood: I'm hoping people write software that meets everybody's needs, not just mine.
- grzm 8y ago"Software that meets everybody's needs" needs to be defined by someone, and in this case, that someone is you. Take inspiration with what's been done and run with it. They've given you all the tools you need, including open source and a very permissive license.
- cyberpunk0 8y agoTrue, was just a poor decision on OP's part to go with arbitrary lockin
- dentemple 8y agoBe the change you want to see in the world. Feel free to contribute back by extending the library to your framework of choice.