0
Follow
0
View

ViteJS - Why does main.js have HTML?

dats7792 注册会员
2023-01-24 22:43

It's just a demo. And adding HTML dynamically in JS is consistent with other templates using JS frameworks.

You can just do that. It's completely allowed.

You can just move the HTML to index.html and add set that dynamic image src using JS in main.js

About the Author

Question Info

Publish Time
2023-01-24 22:43
Update Time
2023-01-24 22:43