next.js/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/with-nested-arrow-function.input.js
with-nested-arrow-function.input.js23 lines515 B
export default withAppContainer(
  withAuth(
    class Blog extends React.Component {
      render() {
        const { props, state } = this

        return (
            <Header
              inverse={true}
              user={props.user}
              pathname={props.url.pathname}
              onLogout={() => {
                props.onUser(null)
                props.url.push('/login')
              }}
              onLogoRightClick={() => props.url.push('/logos')}
            />
    	)
      }
    }
  )
)
Quest for Codev2.0.0
/
SIGN IN