Are mode and theme imports required for react-ace?
goongoguma opened this issue · 0 comments
goongoguma commented
Not an issue but have a question.
I am using the library for my project.
According to the document, if I want to use mode and theme, two import statements are needed.
import "ace-builds/src-noconflict/mode-java";
import 'ace-builds/src-noconflict/theme-github';
<AceEditor
mode="java"
theme="github"
onChange={onChange}
name="UNIQUE_ID_OF_DIV"
editorProps={{ $blockScrolling: true }}
/>,
However, seems like the mode and the theme of editor can be set only passing props to the AceEditor component without declaring those import statements.
Can any issue be introduced if I omit those statments?