Using a State Management Library - React Flow