@qasem.sami/rgc
v1.0.22
Published
Generate react components in typescript or javascript in a folder that include (.tsx or .jsx), (.scss, .css) files using a command line
Downloads
4
Readme
��#� �G�e�n�e�r�a�t�e�-�R�e�a�c�t�-�C�o�m�p�o�n�e�n�t�s� �-� �g�r�c�
�
�
�
�g�r�c� �l�e�t� �y�o�u� �g�e�n�e�r�a�t�e� �r�e�a�c�t� �c�o�m�p�o�n�e�n�t�s� �i�n� �t�y�p�e�s�c�r�i�p�t� �i�n� �a� �f�o�l�d�e�r� �y�o�u� �s�p�e�c�i�f�y� �a�n�d� �i�t� �w�i�l�l� �i�n�c�l�u�d�e� �.�t�s�x�,� �.�s�c�s�s�,� �.�c�s�s� �f�i�l�e�s� �u�s�i�n�g� �a� �c�o�m�m�a�n�d� �l�i�n�e�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
�
�
�U�s�e� �t�h�e� �p�a�c�k�a�g�e� �m�a�n�a�g�e�r� �[�n�p�m�]� �t�o� �i�n�s�t�a�l�l� �"�@�q�a�s�e�m�.�s�a�m�i�/�r�g�c�"�.�
�
�
�
��
��b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �-�g� �"�@�q�a�s�e�m�.�s�a�m�i�/�r�g�c�"�
�
�
��
�
�
�
�
�#�#� �U�s�a�g�e�
�
�
�
��
��p�y�t�h�o�n�
�
�r�g�c� �.�/�s�r�c�/�C�o�m�p�o�n�e�n�t�s�/�C�a�r�d�
�
�?� �S�e�l�e�c�t� �a�n� �e�x�t�e�n�s�i�o�n�:� �(�U�s�e� �a�r�r�o�w� �k�e�y�s�)�
�
�>� �t�s�x�
�
� � �j�s�x�
�
�
�
�?� �s�t�y�l�e�s�h�e�e�t�s�?� �(�U�s�e� �a�r�r�o�w� �k�e�y�s�)�
�
�>� �s�c�s�s�
�
� � �c�s�s�
�
� � �n�o�n�e�
�
�
��
�
�
�
�
�T�h�i�s� �c�o�m�m�a�n�d� �w�i�l�l� �g�e�n�e�r�a�t�e�
�
�
�
�-� � � �C�a�r�d�.�t�s�x� �(�o�r� �C�a�r�d�.�j�s�x�)�
�
�-� � � �C�a�r�d�.�s�c�s�s� �(�i�f� �y�o�u� �c�h�o�s�e� �s�c�s�s�)�
�
�-� � � �C�a�r�d�.�c�s�s� �(�i�f� �y�o�u� �c�h�o�s�e� �e�i�t�h�e�r� �s�c�s�s� �o�r� �c�s�s�)�
�
�
�
�#�#� �O�u�t�p�u�t�
�
�
�
�#�#�#� �C�a�r�d�.�t�s�x�
�
�
�
��
��s�h�
�
�i�m�p�o�r�t� �R�e�a�c�t� �f�r�o�m� �'�r�e�a�c�t�'�
�
�i�m�p�o�r�t� �"�.�/�C�a�r�d�.�c�s�s�"�;�
�
�i�n�t�e�r�f�a�c�e� �P�r�o�p�s�{�
�
�
�
�}�
�
�c�o�n�s�t� �C�a�r�d�:� �R�e�a�c�t�.�F�C�<�P�r�o�p�s�>� �=� �(�p�r�o�p�s�)� �=�>� �{�
�
� � � � �r�e�t�u�r�n� �(�
�
� � � � � � � � �<�d�i�v�>�
�
� � � � � � � � � � � � �<�h�2�>�C�a�r�d� �w�o�r�k�s�!�<�/�h�2�>�
�
� � � � � � � � �<�/�d�i�v�>�
�
� � � � �)�
�
�}�
�
�e�x�p�o�r�t� �d�e�f�a�u�l�t� �C�a�r�d�
�
�
��
�
�
�