Created
March 1, 2019 07:46
-
-
Save xpsteven/fbaa30aa3a2a40a7ca34a13cc4fad182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pagination extends PureComponent { | |
... | |
} | |
class WrongPage extends Component { | |
render() { | |
return ( | |
... | |
<Pagination title={<h5>test</h5>} /> | |
... | |
); | |
} | |
} | |
const title = <h5>test</h5>; | |
class RightPage extends Component { | |
render() { | |
return ( | |
... | |
<Pagination title={title} /> | |
... | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment