Closed mkubdev closed 1 year ago
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our GitHub Organisation - we help and encourage each other to contribute to open source little and often :neckbeard:. Any questions let us know.
Woooooooooo...... :rocket: i can fly with this!!!
The Back Story about your Javascript Metaphor
Hi there, I'm a software engineer who's obsessed with finding ways to write less code. I've always been drawn to elegant, efficient solutions that achieve maximum results with minimal effort. I believe that the best code is the code you don't have to write, and I'm always looking for ways to streamline my workflows and eliminate unnecessary complexity. I love nothing more than finding a simple, elegant solution to a complex problem, and I'm always on the lookout for new tools and techniques that can help me write less code while still delivering top-notch results. To me, writing less code isn't just about being lazy or cutting corners - it's about being efficient, effective, and creative.
The javascript Story!
The Formula
I've created a new component called
DynamicHeroicons
that allows for dynamic rendering of Heroicons based on a prop value. The component imports all the Solid icons from the '@heroicons/react/24/solid' package and selects the appropriate icon based on the value of the 'icon' prop.src/components/DynamicHeroicons.js
Here's how to use it in your code:
Let me know if you have any questions or feedback.
A Javascript demo/repos link
None
PayPal Link for Donation (Javascript Storyteller)
None (yet)