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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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