Need to store the names

I was creating a react-flowchart project using react bpmn, how to get the names that I provide inside boxes

Can you elaborate? What exactly are you trying to do and where are you stuck?

I was reading this. I did create boxes and give names to each. But I don’t get how to store these data to a state

I’m not sure whether I understand what you’re trying to build. Can you explain? Is it related to BPMN?