Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

fielder

> 前端框架
Open source

A field-first form library for React and React Native

190 stars0 likes1 views
WebsiteGitHub

About

A field-first form library for React and React Native

Fielder

A field-first form library for React and React Native.

About

Fielder is a form library for React and React Native that has been built from the ground up with a field-first approach to validation.

Features

⚡️ Synchronous validation - no cascading renders

Validation events - validation can differ per event (change, blur, submit, etc.)

Hooks that work - hooks respond to validation changes

Evolving schemas - validation logic evolves with the UI

Basic usage

Install Fielder

Add Fielder to your project.

bash
npm i fielder

Import the module

Use fielder or fielder/preact.

typescript
// React
import { useForm, ... } from 'fielder';

// Preact
import { useForm, ... } from 'fielder/preact';

Set up a form

Use the useForm hook to create a form.

typescript
const myForm = useForm();

return {children};

Create some fields

Use the useField hook to create a field.

typescript
const [usernameProps, usernameMeta] = useField({
  name: 'username',
  initialValue: '',
  validate: useCallback(({ value }) => {
    if (!value) {
      throw Error('Username is required!');
    }
  }, []),
});

return (
  <>
    
    {usernameMeta.error}
  
);

Additional info

Once you're all set up, be sure to check out the guides for a deeper dive!

Additional resources

For more info, tutorials and examples, visit the official docs site!

Also check out:

  • [Article] Why we need another form library
  • [Benchmark] Fielder vs Formik
  • [Video] Getting started with Fielder

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptformformshooksreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架