diff --git a/Migration.md b/Migration.md index 6ed3a2f8..f9c00d36 100644 --- a/Migration.md +++ b/Migration.md @@ -63,7 +63,7 @@ class TodoList extends React.Component { render() { const items = this.state.items.map((item, i) => ( -
this.handleRemove(i)}> +
this.handleRemove(i)}> {item}
)); @@ -88,7 +88,7 @@ The most straightforward way to migrate is to use `` instead of ```diff render() { const items = this.state.items.map((item, i) => ( -
this.handleRemove(i)}> +
this.handleRemove(i)}> {item}
)); @@ -141,14 +141,14 @@ Now we add the `` component: render() { const items = this.state.items.map((item, i) => ( +
this.handleRemove(i)}> {item}
-+ ++ )); return ( @@ -184,7 +184,7 @@ We can then use it like: render() { const items = this.state.items.map((item, i) => ( - @@ -192,7 +192,7 @@ We can then use it like:
this.handleRemove(i)}> {item}
-- +- + ));