how to use pure components react native code example
Example 1: pure components
// some-other-file.js
import history from './history'
history.push('/go-here')
Example 2: pure components
// history.js
import { createBrowserHistory } from 'history'
export default createBrowserHistory({
/* pass a configuration object here if needed */
})