Skip to content

Commit

Permalink
Merge pull request #37 from codemod-com/fix_test_failure_react-router…
Browse files Browse the repository at this point in the history
…/4/move-hoc-to-global-scope

fix(codemods/react-router/4/move-hoc-to-global-scope): correct test fixtures for the codemod
  • Loading branch information
alexbit-codemod authored Jan 20, 2025
2 parents 7d2a835 + ad825fb commit cafb7fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const HOCPageComponent = HOC(PageComponent);
<Switch>
<Route
path="/"
render={(props) => <Route exact path="/a" component={HOCPageComponent} />}
render={(props) => (
<Route exact path="/a" component={HOCPageComponent} />
)}
/>
</Switch>
</Router>;

0 comments on commit cafb7fe

Please sign in to comment.