Someone moved your question from Community (forum) Help to Adobe Experience Designer (XD).
While true that XD is a good tool for prototyping, IMO it misses the mark at generating usable code. There are several 3rd party code generating add-ons available but most fall way short of expectation. As it stands now with XD, you either write your own code manually or hand off prototypes to a skilled programmer who knows what they're doing.
5 Best Wireframing Tools
Top 10 App Development Tools