You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importJsonViewfrom"@uiw/react-json-view";constobject={avatar: '"line"\nline2\nline2\nline2\n"line"',string: "Lorem ipsum dolor sit amet"};exportdefaultfunctionApp(){return(<divclassName="App"><JsonViewvalue={object}keyName="root"><JsonView.Stringrender={({ children, style, ...reset},{ type, value })=>{console.log("value",value,reset);if(type==="value"){return(<pre{...reset}style={{ ...style,paddingLeft: 43}}>{value}</pre>);}}}/></JsonView></div>);}
Like this viewer, when the string values show the string with scaped values
Thanks
The text was updated successfully, but these errors were encountered: