if (shouldBeNewline) {
      return !isNewline(elementNode);
    }
The lowest-level component in a `DraftEditor`, the text node component
replaces the default React text node implementation. This allows us to
perform custom handling of newline behavior and avoid re-rendering text
nodes with DOM state that already matches the expectations of our immutable
editor state.