Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Modify the contents of the function will not be updated. #101

@ghost

Description

import React, { Component, } from 'react';
class Inbox extends Component {
    getCon = () => {
        return (
            <div>Modify the contents of the function will not be updated.</div>
        )
    }
    render() {
        return (
            <div>
                <h2>{this.getCon()}</h2>
                <div>Here can be updated.</div>
                {this.props.children || 'default'}
            </div>
        );
    }
}
export default Inbox;

Sample code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions