FormSpy is exported via Data Driven Forms.

import FormSpy from '@data-driven-forms/react-form-renderer/dist/cjs/form-spy';