draft-js-utils icon indicating copy to clipboard operation
draft-js-utils copied to clipboard

Render custom inline + block React components

Open Nases opened this issue 3 years ago • 0 comments

I've been trying to use my custom components on export.

const Bold = ({ children }) => {
  return (
    <Text style={styles.bold}>
      {children}
    </Text>
  )
}
inlineStyles: {
  BOLD: {element: <Bold />}
}

Any way to get this working?

Nases avatar Mar 11 '21 01:03 Nases