40 | Graph interrupted. Next: {props.state.next}
41 |
43 |
44 | If you'd like to update the state, enter valid JSON to the input
45 | below:
46 |
47 |
{
49 | try {
50 | const parsed = JSON.parse(e.target.value);
51 | setIsValidJson(true);
52 | setNewState(parsed);
53 | } catch (e) {
54 | setIsValidJson(false);
55 | }
56 | }}
57 | className="bg-gray-800 text-white px-4 py-2 rounded-lg mt-2"
58 | />
59 | {!isValidJson &&
Invalid JSON
}
60 |
63 |
setAsNode(e.target.value)}
66 | id="asNode"
67 | className="bg-gray-800 text-white px-4 py-2 rounded-lg mt-2"
68 | />
69 |
76 |