npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-quick-comp

v1.1.4

Published

A tool to facilitate the quick creation of React components via the command line.

Downloads

3

Readme

react-quick-comp

A tool to facilitate the quick creation of React components via the command line.

Description

react-quick-comp is a tool aimed at simplifying the creation of new React components in projects. With just one command, you can quickly generate the basic structure of a new component, allowing you to focus more on the specific logic of the component and less on the initial setup.

Installation

To install the react-quick-comp tool globally, execute the following command:

npm install -g react-quick-comp

Usage

Note: Before running the following command, make sure to open the folder where you want to create the new component in your terminal.

To create a new component, use the following command:

rqc create ComponentName

This will create a folder with the component name, containing the index.js file and the basic structure of the component.

Documentation

Available flags:

  • --ts: Creates a TypeScript component with an interface.
  • --css: Creates a component with a style file (using styled-components).
  • --all: Creates a component with a test file and style.

Examples

Here are some examples of how you can use react-quick-comp to streamline your workflow:

  1. Create a basic component:
rqc create Button
  1. Create a TypeScript component with an interface:
rqc create Input --ts
  1. Create a component with a style file using styled-components:
rqc create Card --css
  1. Create a React-Native component with style and test file usign Typescript:
rqc create Card --native --ts --all

Contribution

Contributions are welcome! If you wish to collaborate with the project, follow the steps below:

  1. Fork the react-quick-comp repository on GitHub.
  2. Create a new branch with your modifications: git checkout -b my-contribution.
  3. Make the desired changes and commit: git commit -m "My contribution".
  4. Send your changes to the remote repository: git push origin my-contribution.
  5. Open a Pull Request so that your changes can be reviewed and incorporated into the project.

Contributors

License

This project is licensed under the MIT License.

Contact

If you have any questions, suggestions, or need to get in touch, feel free to use one of the following methods:

GitHub

NPM