Skip to content

Commit 22eec8b

Browse files
committed
Fix link typo
1 parent b4b786e commit 22eec8b

File tree

1 file changed

+1
-1
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/react_typescript

1 file changed

+1
-1
lines changed

apps/components_guide_web/lib/components_guide_web/templates/react_typescript/tips.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function Button({
9595

9696
There’s not much difference, but I prefer the latter as:
9797
- The `function` keyword clearly says *I am a function* whereas the `=>` whispers.
98-
- Using function adds a [`name` property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name), which is both useful for debugging and is also used in presenting in [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en). Arrow functions need an additional [babel plugin]((https://babeljs.io/docs/en/babel-plugin-transform-function-name) to make this happen.
98+
- Using function adds a [`name` property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name), which is both useful for debugging and is also used in presenting in [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en). Arrow functions need an additional [babel plugin](https://babeljs.io/docs/en/babel-plugin-transform-function-name) to make this happen.
9999
- We don’t need to decide between implicit and explicit returns — we always need to write `return` which makes refactoring quicker as we can quickly add new statements.
100100
- Just because arrow functions are newer doesn’t mean we have to use them all the time.
101101

0 commit comments

Comments
 (0)