Skip to content

Commit

Permalink
Create StateLogger.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Nov 15, 2022
1 parent 06fb0c9 commit 443ae71
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/StateLogger.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
withState,
} from 'react-searchkit';

class _StateLogger extends React.Component {
render() {
return (
<div>
<div>
Current query state <pre>{JSON.stringify(this.props.currentQueryState, null, 2)}</pre>
</div>
<div>
Current results state <pre>{JSON.stringify(this.props.currentResultsState, null, 2)}</pre>
</div>
</div>
);
}
}

const StateLogger = withState(_StateLogger);

export default StateLogger;

0 comments on commit 443ae71

Please sign in to comment.