Last active
November 20, 2023 19:39
-
-
Save jurosh/eb0b10cdfa45c61ba99f6a441b316c21 to your computer and use it in GitHub Desktop.
Revisions
-
jurosh revised this gist
Nov 20, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const reactRouterResult = : null : null; // Prettier 3.1 (Back to the old days) const reactRouterResult = children && !isEmptyChildren(children) ? children @@ -22,7 +22,7 @@ const reactRouterResult = : null : null; // Prettier 3+ (Experimental https://github.com/prettier/prettier/pull/13183) const reactRouterResult = children && !isEmptyChildren(children) ? children : props.match ? -
jurosh renamed this gist
Nov 20, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jurosh created this gist
Nov 20, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ // Prettier < 3 const reactRouterResult = children && !isEmptyChildren(children) ? children : props.match ? component ? React.createElement(component, props) : render ? render(props) : null : null; // Prettier 3.1 (Back to old days) const reactRouterResult = children && !isEmptyChildren(children) ? children : props.match ? component ? React.createElement(component, props) : render ? render(props) : null : null; // Prettier 3+ (Experimental) const reactRouterResult = children && !isEmptyChildren(children) ? children : props.match ? component ? React.createElement(component, props) : render ? render(props) : null : null