Skip to content

Commit 0106a98

Browse files
committed
Switch to setState instead of replaceState
Resolves #48 and resolves #55
1 parent 65d253e commit 0106a98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/React.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ exports.getChildren = getChildren;
3737
function writeState(this_) {
3838
return function(state){
3939
return function(){
40-
this_.replaceState({
40+
this_.setState({
4141
state: state
4242
});
43-
return function(){
44-
return state;
45-
}
43+
return state;
4644
};
4745
};
4846
}

0 commit comments

Comments
 (0)