React Modal windows

Hi,

I am using a customized modal window feature and showing my component inside that modal.
I am showing a small form and existing added options as listing inside modal window.
Data is showing properly inside modal including existing added options

Problem
I am not able to clear my existing data inside modal window,
for example clicking first option on parent window open modal window with 6 options as listing
now on clicking section option, data appended inside existing listing in modal, instead of replacing or clearing the result of previous attempts.