Display a State diagram using Mermaid
A state diagram is a type of diagram used in computer science and related fields to describe the behavior of systems. For a complete syntax guide, refer to the Mermaid documentation.
Example
---
title: Simple sample
---
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
Codeļ¼
```mermaid
---
title: Simple sample
---
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```