StaticdefaultCalled immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
cancelled network requests, or cleaning up any DOM elements created in componentDidMount.
Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.
Note: the presence of this method prevents any of the deprecated lifecycle events from running.
Updates JSON state when props change from the parent.
state.json is initialized once in the constructor. If the
Frontend sends fresh data while the editor is already mounted,
we need to update state.json to reflect those changes.
Called immediately after a component is mounted. Setting state here will trigger re-rendering.