Skip to content

Commit ed80caa

Browse files
Ranga KaranamRanga Karanam
authored andcommitted
Thank You for Choosing to Learn from in28Minutes
1 parent 1ee2f06 commit ed80caa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

00000-react-6-updates/react6-vs-react5-step-by-step-changes.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,19 +555,15 @@ const ListTodosComponentWithNavigation = withNavigation(ListTodosComponent)
555555
556556
```
557557

558-
##### Change 1: ListTodosComponent - Use this.props.navigate
558+
##### Change 2: ListTodosComponent - Use this.props.navigate
559559

560560
```
561561
updateTodoClicked(id) {
562562
this.props.navigate(`/todos/${id}`)//REACT-6
563563
//this.props.history.push(`/todos/${id}`)
564564
```
565565

566-
## Display Todo Details in TodoComponent
567-
568-
#### Change Overview
569-
570-
##### Change 1: TodoComponent - Enable Params and Navigation
566+
##### Change 3: TodoComponent - Enable Params and Navigation
571567

572568
```
573569
class TodoApp extends Component {
@@ -584,7 +580,7 @@ const TodoComponentWithParamsAndNavigation = withParams(withNavigation(TodoCompo
584580
585581
```
586582

587-
##### Change 2: TodoComponent constructor - Use this.props.params
583+
##### Change 4: TodoComponent constructor - Use this.props.params
588584

589585
```
590586
class TodoComponent extends Component {
@@ -596,7 +592,7 @@ class TodoComponent extends Component {
596592
//id: this.props.match.params.id,
597593
```
598594

599-
##### Change 3: TodoComponent onSubmit - Use this.props.navigate
595+
##### Change 5: TodoComponent onSubmit - Use this.props.navigate
600596
```
601597
onSubmit(values) {
602598

0 commit comments

Comments
 (0)