How to use JSON with react-ace?
[deleted by user]
People who are both aro and ace, how do people react?
Oh yeah, I'll definitely second the 'ace is accepted/aro is not' part. I've heard it a bunch from almost every other aro ace I've seen talk about it.
For me personally, I'd say that as someone who is aro and ace... the ace part never gets to come up, because when people try to pursue a (romantic) relationship with me, the aro part is the first 'roadblock,' it's the 'problem' part of my orientation, and my aceness doesn't even get to factor into things.
I think it's good that aces have some amount of awareness and acceptance, but I don't think alloro aces have any clue how different being aro is from being alloro ace. I really wish aros got a bit more awareness and recognition... I'd identify solely as aromantic if it was practical to do so.
But hey, with a lot of the LGBTQ+ community focused on romance-centric issues such as marriage, or Hashtag LoveWins or LoveIsLove, it's not hard to see why aros get left behind more than most...
More on reddit.comYAML editor for ReactJS?
Videos
» npm install react-ace-builds
» npm install react-ace
Try to setOption useWorker: false
<AceEditor
mode="json"
theme="github"
onChange={onChange}
name="UNIQUE_ID_OF_DIV"
editorProps={{ $blockScrolling: true }}
setOptions={{
useWorker: false
}}
/>
From my understanding, you would need to do either way to resolve the worker problem.
- Import this
ace-builds/webpack-resolver:
import AceEditor from "react-ace";
import "ace-builds/src-noconflict/mode-json";
import "ace-builds/src-noconflict/theme-github";
import 'ace-builds/webpack-resolver';
- Use
file-loaderto loadworker-jsonfile & then configure ace worker:
import AceEditor from "react-ace";
import "ace-builds/src-noconflict/mode-json";
import "ace-builds/src-noconflict/theme-github";
import ace from "ace-builds";
// `webpack` would return the url for `worker-json.js`
// then we use it to configure `ace`
import jsonWorkerUrl from "file-loader!ace-builds/src-noconflict/worker-json";
ace.config.setModuleUrl("ace/mode/json_worker", jsonWorkerUrl);