Skip to content

Commit 6ba9064

Browse files
committed
use react.memo instead of recompose.pure
1 parent e3fb8a4 commit 6ba9064

File tree

3 files changed

+4
-124
lines changed

3 files changed

+4
-124
lines changed

package-lock.json

+3-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"react-virtualized-auto-sizer": "^1.0.2",
7272
"react-window": "^1.3.1",
7373
"reactstrap": "^7.0.2",
74-
"recompose": "^0.30.0",
7574
"rewire": "^4.0.1",
7675
"sass": "^1.15.2",
7776
"shelljs": "^0.8.3",

web/Output.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, { PureComponent } from 'react'
2-
import { pure } from 'recompose'
32
import classNames from 'classnames'
43
import ansi2html from './ansi2html'
54
import { FixedSizeList } from 'react-window'
65
import AutoSizer from 'react-virtualized-auto-sizer'
76

87
import style from './styles/Output.scss'
98

10-
const AnsiPre = pure(({ str, style }) => (
9+
const AnsiPre = React.memo(({ str, style }) => (
1110
<pre
1211
style={style}
1312
dangerouslySetInnerHTML={ansi2html(str, {

0 commit comments

Comments
 (0)