Skip to content

Commit

Permalink
Update observable-state.md (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshahzaiib committed Jun 23, 2023
1 parent 8224ab7 commit 27efa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/observable-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const plainMap = new Map(observableMap)
```

To convert a data tree recursively to plain objects, the [`toJS`](api.md#tojs) utility can be used.
For classes, it is recommend to implement a `toJSON()` method, as it will be picked up by `JSON.stringify`.
For classes, it is recommended to implement a `toJSON()` method, as it will be picked up by `JSON.stringify`.

## A short note on classes

Expand Down

0 comments on commit 27efa3c

Please # to comment.