jaredpalmer / jaredpalmer/formik-effect

Consider deprecating this in favor of @reach/component-component

Open
#5 8 comments 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
167
Forks
12
PR merge metrics
No merged PRs in 30d

Description

First of all, thanks again for the amazing work on `formik`, I've recently upgraded it from 0.* to 1.3 without breaking changes 😲!

I think this package brings not so much value considering more generic alternatives, like: https://ui.reach.tech/component-component

I propose to deprecate this redirecting the new users to the alternatives!

## Comparison
```javascript
// withFormikEffect.js
import React from 'react'
import ReactDOM from 'react-dom'
import {Formik, Form, Field} from 'formik'
import {Effect} from 'formik-effect'

const App = () => (


Formik with formik-effect



{formik => (


console.log(currentFormik, nextFormik)
}
/>





)}


)

const rootElement = document.getElementById('root')
ReactDOM.render(, rootElement)
```
vs
```javascript
// withComponentComponent.js
import React from 'react'
import ReactDOM from 'react-dom'
import {Formik, Form, Field} from 'formik'
import Component from '@reach/component-component'

const App = () => (


Formik with formik-effect



{formik => (

{
console.log(prevProps.formik, props.formik)
}}
/>





)}


)

const rootElement = document.getElementById('root')
ReactDOM.render(, rootElement)
```

The difference is minimal and u can do it in other ways also (for example passing only the formikBag props you want to `Component`)

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue does not name files, tests, or a concrete implementation plan. Review the package entry points and release metadata, then assess the proposed deprecation and the @reach/component-component comparison; done would require a maintainer-approved deprecation path and updated guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.