This npm package, @plumedours/react-create-component, is designed to automate the creation of React Native components in a project. It creates a new folder for the component, along with default JSX and style files, allowing developers to focus on the application logic rather than initial setup.
To install this package in your project, run the following command in the terminal:
npm install @plumedours/react-create-component
After installation, you can create a new component by executing the following command in the terminal:
npx create-component NomDuComposant
Replace ComponentName with the name you want to give your component. The script will create a new folder in ./components/ComponentName with two files: ComponentName.jsx and ComponentName.style.js.
Ce package npm, @plumedours/react-create-component
, est conçu pour automatiser la création de composants React Native dans un projet. Il crée un nouveau dossier pour le composant, ainsi que des fichiers JSX et de style par défaut, permettant aux développeurs de se concentrer sur la logique de l'application plutôt que sur la configuration initiale.
Pour installer ce package dans votre projet, exécutez la commande suivante dans le terminal :
npm install @plumedours/react-create-component
Après l'installation, vous pouvez créer un nouveau composant en exécutant la commande suivante dans le terminal :
npx create-component NomDuComposant
Remplacez NomDuComposant
par le nom que vous souhaitez donner à votre composant. Le script créera un nouveau dossier dans ./components/NomDuComposant
avec deux fichiers : NomDuComposant.jsx
et NomDuComposant.style.js
.