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
-
i don't think this question is answered, the answers give an alternate way to achieve the result but never explains why its not possible to call render manuallysome_groceries– some_groceries2020-04-09 22:48:24 +00:00Commented Apr 9, 2020 at 22:48
Add a comment
|
1 Answer
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