diff --git a/README.md b/README.md index ca4b860..69b98ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # react-to-webcomponent -`react-to-webcomponent` converts [React](https://reactjs.org/) components to [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)! It lets you share React components as native elements that __don't__ require mounted being through React. The custom element acts as a wrapper for the underlying React component. Use these custom elements with any project that uses HTML even in any framework (vue, svelte, angular, ember, canjs) the same way you would use standard HTML elements. +`react-to-webcomponent` converts [React](https://reactjs.org/) components to [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements)! It lets you share React components as native elements that **don't** require mounted being through React. The custom element acts as a wrapper for the underlying React component. Use these custom elements with any project that uses HTML even in any framework (vue, svelte, angular, ember, canjs) the same way you would use standard HTML elements. `react-to-webcomponent`: @@ -26,10 +26,8 @@ import * as ReactDOM from "react-dom/client" // When using React 16 and 17 import ReactDom with the commented statement below instead: // import ReactDom from "react-dom" -const Greeting = ({name}) => { - return ( -