My goal is simple : changing an index file to a React package for some integrations later on.
Looking at different tools, the "easiest" one seems to be html-to-react-components, with its CLI commands.
After adding data-component="myDataComponent" to the element I want to convert, I typed the following command to create the React elements :
html2react <path-to-index.html>
But for some reason, this is the output : Successfully generated 0 components: Saved into "components" directory
After looking at the sample provided in the repo and swapping a few elements, it doesn't look like I did something wrong, appart from installing the module itself.
Ran both npm i html-to-react-components and npm i -g html-to-react-components but no constructive results.
Any Ideas on why does it not work the way it should ?
Edit : NPM Version : v6.4.11 Node version : v16.14.2