From 443ae71c069fa254b3b60edcd1a8647a6a654cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katja=20Su=CC=88ss?= Date: Tue, 15 Nov 2022 17:21:25 +0100 Subject: [PATCH] Create StateLogger.jsx --- src/components/StateLogger.jsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/components/StateLogger.jsx diff --git a/src/components/StateLogger.jsx b/src/components/StateLogger.jsx new file mode 100644 index 00000000..d3e9fe1e --- /dev/null +++ b/src/components/StateLogger.jsx @@ -0,0 +1,22 @@ +import { + withState, +} from 'react-searchkit'; + +class _StateLogger extends React.Component { + render() { + return ( +
+
+ Current query state
{JSON.stringify(this.props.currentQueryState, null, 2)}
+
+
+ Current results state
{JSON.stringify(this.props.currentResultsState, null, 2)}
+
+
+ ); + } +} + +const StateLogger = withState(_StateLogger); + +export default StateLogger;