I am reading MobX docs , and the following code confuses me:
class Todo { id = Math.random(); @observable title = ""; @observable finished = false; } @observer class TodoListView extends Component { render() { return <div> <ul> {this.props.todoList.todos.map(todo => <TodoView todo={todo} key={todo.id} /> )} </ul> Tasks left: {this.props.todoList.unfinishedTodoCount} </div> } }
What is the meaning of the @ symbol?
nomad source share