Component Not Updating On State Update In React
Environment: React Configuration: I have a Editor.js component that has AceEditor. The Editor component is imported in App.js and used twice to show input and output data. The input is processed to output on clicking button and the output box is supposed to display the updated value. The input and output data are stored in a state. Expected Result: When the button is clicked, get the value from the input box, run the value through some function and show the result in outputbox. Problem: When I click the "Process" button, the output box is supposed to display the processed value in the Editor, but it only updates the state and don't update the Output Box at all. Simplest form of entire projrct's source code showing only the mentioned problem: https://stackblitz.com/edit/react-uvm1vc?file=src/App.js