import './demo4.css'; import ConfigProvider from '..'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; const localeSettings = { momentLocale: 'fr-FR', CustomizedComponent: { helloWorld: 'hello, world', }, }; const App = ({ children }) => ( {children} ); App.propTypes = { children: PropTypes.node, }; const Child = () => ( // @ts-ignore {context => ( Context's state {JSON.stringify(context, undefined, 2)} )} {/* @ts-ignore */} ); const Demo = () => ( ); ReactDOM.render(, document.getElementById('config-provider-demo-4'));
{JSON.stringify(context, undefined, 2)}