From ecd80de94f5e56132008b763344970cceaceecbb Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Wed, 26 Feb 2020 16:49:53 +0200 Subject: [PATCH] [docs] Fix code block type and link Fix bad `s/js/javascript/` followed by `s/javascript/jsx/` for a `json` code block. Link to the `.md` instead of `.html` version of the file. --- docs/performance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/performance.md b/docs/performance.md index 8f7b1be73e7..f1a2c98acd1 100644 --- a/docs/performance.md +++ b/docs/performance.md @@ -39,7 +39,7 @@ JavaScript thread performance suffers greatly when running in dev mode. This is When running a bundled app, these statements can cause a big bottleneck in the JavaScript thread. This includes calls from debugging libraries such as [redux-logger](https://github.com/evgenyrodionov/redux-logger), so make sure to remove them before bundling. You can also use this [babel plugin](https://babeljs.io/docs/plugins/transform-remove-console/) that removes all the `console.*` calls. You need to install it first with `npm i babel-plugin-transform-remove-console --save-dev`, and then edit the `.babelrc` file under your project directory like this: -```jsxon +```json { "env": { "production": { @@ -55,7 +55,7 @@ This will automatically remove all `console.*` calls in the release (production) Use the new [`FlatList`](flatlist.md) or [`SectionList`](sectionlist.md) component instead. Besides simplifying the API, the new list components also have significant performance enhancements, the main one being nearly constant memory usage for any number of rows. -If your [`FlatList`](flatlist.md) is rendering slow, be sure that you've implemented [`getItemLayout`](flatlist.html#getitemlayout) to optimize rendering speed by skipping measurement of the rendered items. +If your [`FlatList`](flatlist.md) is rendering slow, be sure that you've implemented [`getItemLayout`](flatlist.md#getitemlayout) to optimize rendering speed by skipping measurement of the rendered items. ### JS FPS plunges when re-rendering a view that hardly changes