Currently, we require converters to be defined to do anything. But as of React 16.x (if not earlier?), we can render custom/arbitrary tag names. This means that we can turn an XML document into a React tree without any provided converters.
e.g.
import { createElement } from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
renderToStaticMarkup(createElement('foo'));
// => <foo></foo>
I'd like to propose that this be our default behavior.
Currently, we require converters to be defined to do anything. But as of React 16.x (if not earlier?), we can render custom/arbitrary tag names. This means that we can turn an XML document into a React tree without any provided converters.
e.g.
I'd like to propose that this be our default behavior.