Skip to content

Instantly share code, notes, and snippets.

@xpsteven
Created March 1, 2019 07:46
Show Gist options
  • Save xpsteven/fbaa30aa3a2a40a7ca34a13cc4fad182 to your computer and use it in GitHub Desktop.
Save xpsteven/fbaa30aa3a2a40a7ca34a13cc4fad182 to your computer and use it in GitHub Desktop.
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