const $auth = axios.create({
baseURL: http://localhost:3000,
headers: {
'Content-Type': 'application/json'
}
});
const response = await $auth.get('/tags);
const insertText = (text: string) => {
let contentState = editorState.getCurrentContent();
const selectionState = editorState.getSelection();
const contentStateWithEntity = contentState.createEntity(
'MY_ENTITY_TYPE',
'IMMUTABLE'
);
const entityKey = contentStateWithEntity.getLastCreatedEntityKey();
contentState = Modifier.insertText(contentState, selectionState, text);
let newState = EditorState.push(
editorState,
contentState,
'insert-characters'
);
setEditorState(newState);
};
В ide не думаю что будет большая задержка, в vim так её точно не будет.