The docs say that ReactPerformance.createNotifier() returns a "middleware", but it actually creates a Redux store enhancer instead, which is why it needs to be passed to compose() instead of passed to applyMiddleware(). This should be fixed for clarity.
The docs say that
ReactPerformance.createNotifier()returns a "middleware", but it actually creates a Redux store enhancer instead, which is why it needs to be passed tocompose()instead of passed toapplyMiddleware(). This should be fixed for clarity.