Skip to content

Commit 2cdeeb5

Browse files
jpavonferdaber
authored andcommitted
update @jpavon/react-scripts-ts package description
1 parent d901e5c commit 2cdeeb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ When using `useEffect`, take care not to return anything other than a function o
232232
```ts
233233
function DelayedEffect(props: { timerMs: number }) {
234234
// bad! setTimeout implicitly returns a number because the arrow function body isn't wrapped in curly braces
235-
const { timerMs } = props;
235+
const { timerMs } = props;
236236
useEffect(() => setTimeout(() => {/* do stuff */}, timerMs), [timerMs])
237237
return null
238238
}
@@ -408,7 +408,7 @@ let el = <Greet />;
408408

409409
<details>
410410
<summary>Typescript 2.9 and earlier</summary>
411-
411+
412412
For Typescript 2.9 and earlier, there's more than one way to do it, but this is the best advice we've yet seen:
413413

414414
```ts
@@ -907,7 +907,7 @@ partialStateUpdate({ foo: 2 }); // this works
907907
<summary>
908908
Minor caveats on using <code>Partial</code>
909909
</summary>
910-
910+
911911
Note that there are some TS users who don't agree with using `Partial` as it behaves today. See [subtle pitfalls of the above example here](https://twitter.com/ferdaber/status/1084798596027957248), and check out this long discussion on [why @types/react uses Pick instead of Partial](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365).
912912
</details>
913913

@@ -1044,7 +1044,7 @@ const f = (e: PlotlyHTMLElement) => {
10441044

10451045
React Boilerplates:
10461046

1047-
- [jpavon](https://github.com/jpavon/react-scripts-ts) offers an alternative react-scripts-ts with Webpack 4 and better linting.
1047+
- [@jpavon/react-scripts-ts](https://github.com/jpavon/react-scripts-ts) alternative react-scripts with all TypeScript features using [ts-loader](https://github.com/TypeStrong/ts-loader)
10481048
- [webpack config tool](https://webpack.jakoblind.no/) is a visual tool for creating webpack projects with React and TypeScript
10491049
- <https://github.com/innFactory/create-react-app-material-typescript-redux> ready to go template with [Material-UI](https://material-ui.com/), routing and Redux
10501050

0 commit comments

Comments
 (0)