question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Write formik in plain js

See original GitHub issue

Hey,

Is it possible to write formik in regular js instead of typescript and keep typings in a separate folder/file/library?

It’s really hard to read the codebase and contribute when you don’t know typescript. There are a lot of any typings, probably half - this kinda kills the purpose of strong types.

Currently, typescript adds to formik:

cons

  • useful only for devs, who use TS
  • hard to read and contribute for regular users
  • requires more time to support types
  • pollutes codebase
  • almost half of typings are any

pros

  • helps TS devs to make few errors (not really helpful due to any typings)
  • makes TS devs happy to see project written in TS
  • ?

This reminds the situation with coffescript - very hard to contribute, only for devs who know it. It’ll be really great to have formik in plain js, is it possible?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

14reactions
sw-yxcommented, May 21, 2019

fun to read this 2 years on 😃

6reactions
Andreycocommented, Oct 3, 2017

@jaredpalmer Please, keep on using Typescript.

Somehow, it makes me laugh (no offence, not targeted to any particular person in this thread) this conversation exists here, or any other place.

I disagree typings are deal breakers for contributors. Even junior members in our teams have no problem with understanding Flow typings at all.

Biggest strength of static type checkers is discovering issues without running code, so as long I/you/we discover those with TS/Flow, we should keep on using them. Removing TS would be definitely step back.

Waiting for Reason to gain more traction 😎

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial - Formik
Welcome to the Formik tutorial. This will teach you everything you need to know to build simple and complex forms in React. If...
Read more >
Simple structure to write forms in React with Formik
I wanted to share how I use Formik to write forms in my react code. I expect you've already heard and tried Formik...
Read more >
Building forms with Formik in React - LogRocket Blog
Building forms with React requires you to write every part of the ... This function prop is quite similar to onsubmit in vanilla...
Read more >
React Form Validation with Formik and Yup | by Paul Nasilele
Step 4: Create a folder called components inside the /src folder of your app project. Inside the components folder, create a file called...
Read more >
Formik: React forms made easier - Medium
During my jorney writing React apps, every time I had to include a form, I used to do it using vanilla React, without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found