Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are mode and theme imports required for react-ace? #1847

Open
goongoguma opened this issue Dec 15, 2023 · 0 comments
Open

Are mode and theme imports required for react-ace? #1847

goongoguma opened this issue Dec 15, 2023 · 0 comments

Comments

@goongoguma
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant