Closed JESii closed 7 years ago
autoFocus
now as that's equivalent. I think I used braces so it's consistent.Got it; thanks! ... Oh; of course -- because it's just an object.
Actually, the braces ARE required -- without them you get this error from the build step:
Module build failed: SyntaxError: JSX value should be either an expression or a quoted JSX text (22:13)
@JESii Yeah. But note that autoFocus={true}
and autoFocus
are equivalent based on the current JSX specification.
1) In this section, you change
const Edit = ({onEdit = () => {}, value, ...props}) => (
toconst {value, onEdit, ...props} =
Why the change in the order of parameters? And wouldn't that matter?2) Later, in the
return
statement you have:autoFocus={true}
Why is true enclosed in {}? Since it's a constant, shouldn't that just be:autoFocus=true
? I mean, it'll work ok because it is a constant...