Too much import to use in one component #2210
Closed
laktebomar
started this conversation in
General
Replies: 1 comment
-
Let me know if this explanation helps you. @TomMorane is working on a rewrite of the documentation; I've suggested this as a potential area of improvement. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I looked at some examples in the doc. I noticed that you gotta deal with a lot of import, which looks bad. it. would be better if you find a way with less import effort.
here's an example. :
import { createBasicElementsPlugin, createExitBreakPlugin, createResetNodePlugin, createSoftBreakPlugin, Plate, PlateProvider, } from '@udecode/plate'; import { basicElementsValue } from './basic-elements/basicElementsValue'; import { BasicElementToolbarButtons } from './basic-elements/BasicElementToolbarButtons'; import { editableProps } from './common/editableProps'; import { plateUI } from './common/plateUI'; import { exitBreakPlugin } from './exit-break/exitBreakPlugin'; import { resetBlockTypePlugin } from './reset-node/resetBlockTypePlugin'; import { softBreakPlugin } from './soft-break/softBreakPlugin'; import { Toolbar } from './toolbar/Toolbar'; import { createMyPlugins, MyValue } from './typescript/plateTypes';
Beta Was this translation helpful? Give feedback.
All reactions