In some web applications, sometimes it is required to build node/edge based flow diagrams to describe the workflows, procedures as drag&drop and flexible/intuitive UI.
React-flow is the library you are looking for. React-flow is most flexible and customizable.
There is react-flow documentation and examples.