Giter Site home page Giter Site logo

comnsense17 / create-component Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javgt/vscode-component-creator

0.0 0.0 0.0 1.98 MB

This extension is used for the creation of components in a more optimal and faster way

License: MIT License

TypeScript 100.00%

create-component's Introduction

React Create Component

Create your React Js components (Currently) in a fast way, with multiple variety in less than 5 seconds.

Features

  • Create a component depending on the selected language.
  • Create a style file depending on the type of style or extension selected.
  • You can create styles per module.
  • You can create a component with built-in style import.
  • It generates a barrel in your folder.
  • In the tsx files, integrate the interface.

Integrations

Integrations Technologies
Framework or library React
Language Javascript, Typescript
Style extensions css, sass, scss
Styles options module, Style-Component, tradicional

How does it work?

Use from a specific path

Working You can use it by clicking on the folder where you want your component to be and clicking on the "Create Component" option.

Use by entering the path

Working You can also use it by giving it by executing the "Create Component" command from the command palette To create a component it can also be executed with the following keys (ctrl + shift + l)

Settings

Working You can make plugin settings to make component creation much faster.

Structure Results

ComponentFolder
│── Component.tsx        // The component can have the extension ".tsx" or ".jsx"
|── Styles               // Folder where you store the styles
│    └── Component.css   // The extension will depend on the selected option
└── index.tsx            // Index file to export the component

Component result example

Javascript

import React from 'react';
import './styles/ComponentName.css';

const ComponentName = () => {
	return <div className='ComponentName'>ComponentName</div>;
};

export default ComponentName;

css

.ComponentName {
}

Barrel

export { default as ComponentName } from './ComponentName';

License

React Create Component is MIT licensed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.