Using on Input and onBlur to set values and submit them to Redux

PHOTO EMBED

Tue Jun 21 2022 10:51:54 GMT+0000 (UTC)

Saved by @Floony #react.js

 <Control
type="text"
size="sm"
style={{ width: '146px' }}
placeholder="Enter new library name"
onInput={(e) => setLibraryName((e.target as HTMLInputElement).value)}
onBlur={() => dispatch(posesSlice.actions.setLibrary({ name: libraryName }))}
/>
content_copyCOPY