lundi 29 février 2016

React testing componentWillReceiveProps

I do quite a lot of component testing with React. Finally, I'm switching between DOM (renderIntoDocument) and Shallow rendering and I have two questions:

  • why componentDidMount is not triggered in Shallow rendering?
  • is it possible to trigger componentWillReceiveProps with DOM approach?

Thanks

Aucun commentaire:

Enregistrer un commentaire