This is only your opinion
What you wrote here is only your opinion also )) Have you ever experienced making a page builder in React? You will be amazed how much hacks you have to do, to make it work. So yes, this use case is valid one and makes sense.
<div data-role-react-root="block-1"></div> <div data-role-react-root="other-block"></div> <div data-role-react-root="block-1"></div> <div data-role-react-root="some-other-block"></div> <!-- block-1.js --> <script> document.querySelectorAll('[data-role-react-root="block-1"]').forEach(rootElement => { const Block1 = () => React.createElement('div', { children: ['my block 1']}) ReactDOM.render(React.createElement(Block1), rootElement); }) </script>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What you wrote here is only your opinion also ))
Have you ever experienced making a page builder in React? You will be amazed how much hacks you have to do, to make it work. So yes, this use case is valid one and makes sense.