Trying out modals

Hello everyone! I am working on my personal portfolio page and when I was going through and reading on how to make a page, I discovered modals. I am trying to add modals to my site, the problem I am having is I added one modal for my HTML, CSS and JavaScript projects, but When I click on my my button for my react projects, I get my projects for HTML, CSS and JavaScript. I thought this would be a cool feature to add for the project, I was wondering if anyone would have any advice.