activateField(e) {
console.log('hello', e.target.id);
this.setState({
[e.target.id]: { inputValue: e.target.value, fieldActive: true },
});
}
disableFocus(e) {
console.log('bye bye', e.target.id);
if (e.target.value === "") {
this.setState({
[e.target.id]: { inputValue: e.target.value, fieldActive: false },
});
}
}
activateField(e) {
console.log('hello', e.target.id);
this.setState({
[e.target.id]: { inputValue: e.target.value, fieldActive: true },
});
}
disableFocus(e) {
console.log('bye bye', e.target.id);
if (e.target.value === "") {
this.setState({
[e.target.id]: { inputValue: e.target.value, fieldActive: false },
});
}
}
- Убрал
exact
сRoute path="/posts/:id"
- Изменил
Content.js
Добавил
Route
вPost.js
https://codesandbox.io/s/9y5pllprro