FormSpy is exported via Data Driven Forms.

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