When following the tutorial I noticed you copied and pasted the code from todo-list, you updated the code as necessary, however you didn't change the line where it says export default class TodoList
the code still works though.
I did place the 'correct' name for the class when following along and of course it works aswell.
So basically I just wanted to know, why does it works both ways? would that line of code have any undesired side-effects?
When following the tutorial I noticed you copied and pasted the code from todo-list, you updated the code as necessary, however you didn't change the line where it says
export default class TodoListthe code still works though.
I did place the 'correct' name for the class when following along and of course it works aswell.
So basically I just wanted to know, why does it works both ways? would that line of code have any undesired side-effects?