Skip to content

Commit b288e58

Browse files
Update README.md
1 parent 363fcfa commit b288e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class CustomComponent extends Component{
8888
function componentDidUpdate($prevState, $currState){} //rener only when there's state update
8989

9090
function render(){
91-
$test = $this->state['test'];
91+
$test = $this->state->test;
9292

9393
return new div([
9494
new p('Hello World', ['style'=> 'color:red;background:blue']),

0 commit comments

Comments
 (0)