acdlite / recompose

A React utility belt for function components and higher-order components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question: store variable like 'this.xxx in component'

rawlinxx opened this issue · comments

class A extends Component {
    constructor(props) {
        super(props);
        this.stateWithoutRerendering = null;
    }
    
    cacheUpdated = (new) => { 
        this.stateWithoutRerendering = new;
    }
}

how should i do it with recompose ?

commented

Because it’s not a bug report nor a feature request, please ask on StackOverflow.