What is the best/effective way to create a reusable modal html/js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the best/effective way to create a reusable modal html/js

What’s the best way to create a reusable modal to be used across multiple pages? I don’t want to have to rewrite the same code on each page that I want to use the modal. I want to create a like a template that I can just call/use on the pages I need/want. So what would be the ideal way to create a JS modal? Like .. what framework to use, and how to structure it and go about using it on multiple pages? /or how do you usually create your modals that use across multiple pages?

5th Dec 2021, 5:35 PM
Ginfio
Ginfio - avatar
2 Answers
+ 2
Try React, angular, helps you to reuse the components
5th Dec 2021, 6:10 PM
Kelvin Paul
Kelvin Paul - avatar
0
I like your English is so good
19th Dec 2021, 7:03 AM
Dreyfus Makobo
Dreyfus Makobo - avatar