How should I be recreating a stateful child component in a parent's render method?
问题 Facebook says that I should not keep a React component in its parent's state. Instead I should be recreating the child in render method each time it is run. What Shouldn't Go in State? React components: Build them in render() based on underlying props and state. Now my question is: How can I do that? Is it even possible? Isn't the state lost if I recreate a child component from scratch? The only way I can think of that this scenario will work in, is that there's only one state object and it