mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
update docsg
This commit is contained in:
@@ -49,7 +49,7 @@ Slate tries to solve the question of "[Why?](#why)" with a few principles:
|
||||
|
||||
3. **Nested document model.** The document model used for Slate is a nested, recursive tree, just like the DOM itself. This means that creating complex components like tables or nested block quotes are possible for advanced use cases. But it's also easy to keep it simple by only using a single level of hierachy.
|
||||
|
||||
4. **Stateless and immutable data.** By using React and Immutable.js, the Slate editor is built in a stateless fashion using immutable data structures, which leads to better performance, and also a much easier time writing plugins.
|
||||
4. **Stateless and immutable data.** By using React and Immutable.js, the Slate editor is built in a stateless fashion using immutable data structures, which leads to much easier to reason about code, and a much easier time writing plugins.
|
||||
|
||||
5. **Intuitive transforms.** Slate's content is edited using "transforms", that are designed to be extremely intuitive to use, so that writing plugins and custom functionality is as simple as possible.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
|
||||
# Statelessness & Immutability
|
||||
|
||||
All of the data in Slate is immutable, thanks to [Immutable.js](https://facebook.github.io/immutable-js/). This makes it possible to achieve a much greater level of performance, and it makes maintaining a history of changes for undo/redo much simpler.
|
||||
All of the data in Slate is immutable, thanks to [Immutable.js](https://facebook.github.io/immutable-js/). This makes it much easier to reason about complex editing logic, and it makes maintaining a history of changes for undo/redo much simpler.
|
||||
|
||||
_To learn more, check out the [`State` model reference](../reference/models/state.md)._
|
||||
|
||||
|
Reference in New Issue
Block a user