Skip to content

Commit cdcaec8

Browse files
committed
Avoid rendering a wrapping div; updated Xstate
1 parent 06e5c09 commit cdcaec8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@
5959
},
6060
"dependencies": {
6161
"@xstate/react": "^0.8.1",
62-
"xstate": "^4.8.0"
62+
"xstate": "^4.9.1"
6363
}
6464
}

src/InlineEdit.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const InlineEdit: React.FC<InlineEditProps> = ({
187187
// Render
188188
// =========================
189189
return (
190-
<div>
190+
<>
191191
{(current.value === 'view' ||
192192
current.value === 'loading' ||
193193
current.value === 'saved' ||
@@ -215,7 +215,7 @@ const InlineEdit: React.FC<InlineEditProps> = ({
215215
handleBlur={handleBlur}
216216
/>
217217
)}
218-
</div>
218+
</>
219219
)
220220
}
221221

0 commit comments

Comments
 (0)