Cheatsheet#

See also

MyST reference

Admonition#

Note

You should note that the title will be automatically capitalized.

Important

This is an admonition box without a title.

Tip

This is an admonition box without a title.

Warning

This is an admonition box without a title.

Danger

Don't try this at home.

See also

This is a see also section.

Deprecated since version 13: This is an admonition box without a title.

Code#

 1  /**
 2   * Render method.
 3   * @method render
 4   * @returns {string} Markup for the component.
 5   */
 6  render() {
 7    return (
 8      this.props.messages && (
 9        <Container className="messages">
10          {map(this.props.messages, (message, index) => (
11            <Message
12              key={message.id}
13              value={index}
14              onDismiss={this.onDismiss}
15              error={message.level === 'error'}
16              success={message.level === 'success'}
17              warning={message.level === 'warning'}
18              info={message.level === 'info'}
19              header={message.title}
20              content={message.body}
21            />
22          ))}
23        </Container>
24      )
25    );
26  }
27);
def somefunction:
"""mydocstring"""
    pass