Closed wflixu closed 5 years ago
sorry, I found It's my code error
//before
{(type === 'Text') || (type === 'Email') && (
<input type={type.toLowerCase()} id={name} value={context.values[name]}
onChange={e => handleChange(e, context)} />
)}
// right code
{(type === 'Text' || type === 'Email') && (
<input type={type.toLowerCase()} id={name} value={context.values[name]}
onChange={e => handleChange(e, context)} />
)}
in chapter 7, I set default type like this
but ,have no effect