Skip to content

Commit

Permalink
update @jpavon/react-scripts-ts package description
Browse files Browse the repository at this point in the history
  • Loading branch information
jpavon authored and ferdaber committed Feb 9, 2019
1 parent 06d6a31 commit 0a15cb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ When using `useEffect`, take care not to return anything other than a function o
```ts
function DelayedEffect(props: { timerMs: number }) {
// bad! setTimeout implicitly returns a number because the arrow function body isn't wrapped in curly braces
const { timerMs } = props;
const { timerMs } = props;
useEffect(() => setTimeout(() => {/* do stuff */}, timerMs), [timerMs])
return null
}
Expand Down Expand Up @@ -408,7 +408,7 @@ let el = <Greet />;

<details>
<summary>Typescript 2.9 and earlier</summary>

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:

```ts
Expand Down Expand Up @@ -907,7 +907,7 @@ partialStateUpdate({ foo: 2 }); // this works
<summary>
Minor caveats on using <code>Partial</code>
</summary>

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).
</details>

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

React Boilerplates:

- [jpavon](https://github.com/jpavon/react-scripts-ts) offers an alternative react-scripts-ts with Webpack 4 and better linting.
- [@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)
- [webpack config tool](https://webpack.jakoblind.no/) is a visual tool for creating webpack projects with React and TypeScript
- <https://github.com/innFactory/create-react-app-material-typescript-redux> ready to go template with [Material-UI](https://material-ui.com/), routing and Redux

Expand Down

0 comments on commit 0a15cb8

Please sign in to comment.