Use React.PureComponent instead of pure-render-decorator
This commit is contained in:
parent
531792b14a
commit
e6892ccd2d
19 changed files with 57 additions and 139 deletions
|
@ -1,10 +1,8 @@
|
|||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import Autolinker from 'autolinker';
|
||||
import pure from 'pure-render-decorator';
|
||||
import { timestamp } from '../util';
|
||||
|
||||
@pure
|
||||
export default class Search extends Component {
|
||||
export default class Search extends PureComponent {
|
||||
render() {
|
||||
const { result } = this.props;
|
||||
const content = Autolinker.link(result.content, { stripPrefix: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue