<sectionid="description"> El objeto de tienda Redux proporciona varios métodos que le permiten interactuar con él. Por ejemplo, puede recuperar el <code>state</code> actual mantenido en el objeto de almacenamiento de Redux con el método <code>getState()</code> . </section>
<sectionid="instructions"> El código del desafío anterior se reescribe más concisamente en el editor de código. Utilice <code>store.getState()</code> para recuperar el <code>state</code> de la <code>store</code> y asigne esto a una nueva variable <code>currentState</code> . </section>
testString: 'getUserInput => assert(currentState === 5 && getUserInput("index").includes("store.getState()"), "A variable <code>currentState</code> should exist and should be assigned the current state of the Redux store.");'