Skip to content

Commit 7881ddb

Browse files
committed
Add formik interview questions
1 parent 812098c commit 7881ddb

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@
281281
|265| [How do you pass arguments to an event handler?](#how-do-you-pass-arguments-to-an-event-handler)|
282282
|266| [How to prevent component from rendering?](#how-to-prevent-component-from-rendering)|
283283
|267| [What are the conditions to safely use the index as a key?](#What-are-the-conditions-to-safely-use-the-index-as-a-key)|
284-
|268| [Is it keys should be globally unique?](#is-it-keys-should-be-globally-unique?)|
284+
|268| [Is it keys should be globally unique?](#is-it-keys-should-be-globally-unique)|
285+
|269| [What is the popular choice for form handling?](#what-is-the-popular-choice-for-form-handling)|
286+
|270| [What are the advantages of formik over redux form library?](#what-are-the-advantages-of-formik-over-redux-form-library)|
285287

286288
## Core React
287289

@@ -4485,4 +4487,17 @@
44854487
</div>
44864488
);
44874489
}
4488-
```
4490+
```
4491+
269. ### What is the popular choice for form handling?
4492+
Formik is a form library for react which provides solutions such as validation, keeping track of the visited fields, and handling form submission. In detail, You can categorize them as follows,
4493+
4494+
1. Getting values in and out of form state
4495+
2. Validation and error messages
4496+
3. Handling form submission
4497+
4498+
It is used to create a scalable, performant, form helper with a minimal API to solve annoying stuff.
4499+
270. ### What are the advantages of formik over redux form library?
4500+
Below are the main reasons to recommend formik over redux form library
4501+
1. The form state is inherently short-term and local, so tracking it in Redux (or any kind of Flux library) is unnecessary.
4502+
2. Redux-Form calls your entire top-level Redux reducer multiple times ON EVERY SINGLE KEYSTROKE. This way it increases input latency for large apps.
4503+
3. Redux-Form is 22.5 kB minified gzipped whereas Formik is 12.7 kB

0 commit comments

Comments
 (0)