Request: Map classes/ids to component names
See original GitHub issueCaveat that I have NO idea how complex this would be, but it’d be amazing if there was an option that when checked, was aware of component names eg: main-nav
, and when it encountered an ID or class in the code that matched that name, inserted the matching component in it’s place.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
The Map component - Google Web Designer Help
The Map component lets you display a customized, interactive map. ... You can also check the Request user location box to prompt the...
Read more >How to Test React Components: the Complete Guide
The first thing we do in our test is call our fake axios get request, and mock the resolved value with ironically the...
Read more >How To Create React Elements with JSX - DigitalOcean
Step 1 — Adding Markup to a React Element ... Here's a simplified example that maps a list of names into a containing...
Read more >Can i map through a list of components? - Stack Overflow
I have a list of components I made and I want to map through them so that can display all at once where...
Read more >How to map data into Components using ReactJS?
That means there is no need to call components and their props as array ... Example: Mapping data from list.js file to custom...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey everyone - apologies for the delay here! Busy doing a lot of work in prep for holidays but this is definitely very interesting
Once I can find a moment, I need to look into if figma plugins can register components (I recall them not being able to but this may have changed)
Also worth pointing out - we gladly take pull requests / contributions if you would like to add this feature in yourself!
Just want to add an update here as this thread is still top of mind.
One of the next significant things we want to do with this plugin is integrate with JSX Lite to read and generate code from.
This could also map well to Figmas components system so I think there is an opportunity there to tackle these two things at a time, so currently focusing on getting that project to a stable v1 and then will be looking deeper here again