71 points · by jimhi · 4y ago · 40 comments
Sometimes I google a cool React calculator and Webpack is confusing and ReactDom throws errors so I built this. I just wanted it on my page fast. It works with the most popular 1000 react libraries or so but you can request others - https://smarketman.com/approved/packages/
Since the most common use for this is visual and marketing related components, I put in a simple IF/ELSE structure for when to show components. You can see more at the homepage: https://smarketman.com/.
You can do some complex things by combining them. Like having a popup to ask for someone's email when they scroll down a page. A/B Testing some titles. Or say showing a coupon code the last hour of every weekend.
It would've never occurred to me to make something like this, but after searching for the terms you suggested below, I do see many people asking for this. Telling those people "just setup node/npm/webpack" is probably not helpful. Your service is easier for those people. Nice job identifying a solution for people with a problem!
As said below, you can just google people asking how to put a cool react component they see online into their GitHub page/Wordpress/Shopify
E.g. is it possible to import react components and vue components, there's gotta be a common ground format between those frameworks.
After creating a snippet from someone else's website with the extension, you can get a mustache template by going to templates tab in extension options. React/Vue is coming really soon - next week I should have an update with the feature.
Many developers inherit or prefer a plain page and just want to use a cool open source react component real quick like adding a slick calculator to their existing webpage.
Not to mention you can use multiple different versions of react with this.
Just as an example, I was trying to add this simple PinField to my wordpress page and it will break if you try to mount: https://www.npmjs.com/package/react-pin-field
Interested in things like kB transferred, first contentful paint, time to interactive, etc.
If this is a way to just generate a build for me to paste into my own website, then the messaging needs to be adjusted. However, I do like how simple it is to just get a quick React build together without having to deal with the tooling.
GitHub comments for instance or hackernews comments won’t work.