Skip to content

Commit d8f31f1

Browse files
authored
docs(form-core): Update philosophy heading tag levels h1 to h2.md (#1204)
1 parent df4fcf9 commit d8f31f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/philosophy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Every well-established project should have a philosophy that guides its developm
77

88
This document outlines the core principles that drive the development and feature-set of TanStack Form.
99

10-
# Upgrading unified APIs
10+
## Upgrading unified APIs
1111

1212
APIs come with tradeoffs. As a result, it can be tempting to make each set of tradeoffs available to the user through different APIs. However, this can lead to a fragmented API that is harder to learn and use.
1313

1414
While this may mean a higher learning curve, it means that you don't have to question which API to use internally or have higher cognitive overhead when switching between APIs.
1515

16-
# Forms need flexibility
16+
## Forms need flexibility
1717

1818
TanStack Form is designed to be flexible and customizable. While many forms may conform to similar patterns, there are always exceptions; especially when forms are a core component of your application.
1919

@@ -25,7 +25,7 @@ As a result, TanStack Form supports multiple methods for validation:
2525
- **Custom error messages**: You can customize the error messages for each field by returning any object from a validator.
2626
- **Async validation**: You can validate fields asynchronously and have common utils like debouncing and cancellation handled for you.
2727

28-
# Controlled is Cool
28+
## Controlled is Cool
2929

3030
In a world where controlled vs uncontrolled inputs are a hot topic, TanStack Form is firmly in the controlled camp.
3131

@@ -37,7 +37,7 @@ This comes with a number of advantages:
3737
- **Enhanced conditional logic**: You can easily conditionally show/hide fields based on the form state.
3838
- **Debugging**: You can easily log the form state to the console to debug issues.
3939

40-
# Generics are grim
40+
## Generics are grim
4141

4242
You should never need to pass a generic or use an internal type when leveraging TanStack Form. This is because we've designed the library to inference everything from runtime defaults.
4343

@@ -60,7 +60,7 @@ useForm({
6060
});
6161
```
6262

63-
# Libraries are liberating
63+
## Libraries are liberating
6464

6565
One of the main objectives of TanStack Form is that you should be wrapping it into your own component system or design system.
6666

0 commit comments

Comments
 (0)