I\'m trying to implement pubsub (publish-subscribe) in ReactJS. If I add the following line mentioned in ComponentB.
formik.setFieldValue("items", [...f