Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call React render() function manually? [duplicate]

I was going through React life -cycle method so a questions comes in my mind. SO Sharing here : Can we call react's render() function forcefully ?
as we call $apply() in angular JS

like image 487
Abhishek Avatar asked May 06 '26 14:05

Abhishek


1 Answers

If you want to render a component you can use ReactDOM.render()
If you want to force a component to update you can use forceUpdate

like image 126
h1b9b Avatar answered May 08 '26 05:05

h1b9b