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

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

Open
ghost opened this issue Nov 27, 2016 · 0 comments
Open

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

ghost opened this issue Nov 27, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 27, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants