React Clone Element Javascript Interview