react-patterns icon indicating copy to clipboard operation
react-patterns copied to clipboard

Question: Constructor + props, context?

Open loopmode opened this issue 7 years ago • 0 comments

Hi. Is it safe to go for a constructor-based approach (as opposed to e.g. componentWillMount) when you only pass props to super(), but not the context? Doesn't this break with popular libraries that use context, like react-router?

loopmode avatar Dec 19 '16 06:12 loopmode