Skip to content

Commit 30e7433

Browse files
committed
Update index.tsx
1 parent 276dcd4 commit 30e7433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/react/simple/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import ReactDOM from "react-dom/client";
3-
import { FieldApi, createFormFactory } from "@tanstack/react-form";
3+
import { FieldApi, createFormFactory, useField } from "@tanstack/react-form";
44

55
type Person = {
66
firstName: string;
@@ -96,7 +96,7 @@ export default function App() {
9696
>
9797
{!hobbiesField.state.value.length
9898
? "No hobbies found."
99-
: hobbiesField.state.value.map((value, i) => (
99+
: hobbiesField.state.value.map((_, i) => (
100100
<div
101101
key={i}
102102
style={{

0 commit comments

Comments
 (0)