Zymble is a VS Code extension that simplifies the React workflow by providing commands to generate React components and hooks with ease.
- Create React Component
- Create React Hook
-
Create React Component:
- Generate a folder from the component name.
- Generate a React functional components with or without props.
- Generate a component test file.
- Generate a types file for components with props.
- The file extensions depending on TypeScript installation:
- Component and test files are
.jsx
or.tsx
. - Type files are
.js
or.ts
.
- Component and test files are
-
Create React Hook
- Generate a folder from the hook name in the hooks folder or a User selected folder.
- Generate custom React hooks with optional useState and useEffect.
- Generate a hook test file.
- Generate a types file for a Typescript hook.
- The file extensions depending on TypeScript installation:
- Hook and test files are
.jsx
or.tsx
. - Type files are
.js
or.ts
.
- Hook and test files are
-
Seamless integration with VS Code
- Open the package folder and select the
zymble<version>.vsix
. - Download and save the raw file to your local directory.
- Open
vscode
- Open the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
- Click the
Views and more Actions
menu to the right of the Extension refresh button. - At the bottom, click the
Install from VSIX
- Locate and select the
zymble-<version>
installation file - Click install
- View the extension by Typing
zymble
in the extension search
git clone https://github.com/nhope123/zymble.git
cd zymble
yarn install
- Open the project in Visual Studio Code.
- Press
F5
to open a new window with your extension loaded.
- From the Command Palette:
- Open the Command Palette by pressing Ctrl+Shift+P.
- Type the name of the extension / command (e.g., Zymble: Create Component) and select it from the list.
- Pressing F1 and Typing the Name of the Command:
- Press F1 to open the Command Palette.
- Type the name of the extension / command (e.g., Zymble: Create Component) and select it from the list.
- Right-Click the Workspace Folder Tree in a React or Prettier Project:
- Right-click on the workspace folder in the Explorer view.
- If the project is a React or Prettier project, the context menu will show options based on the isReactProject and noPrettierConfig contexts set by the commands.
- Run
yarn package
- Locate extension file in
packages/
folder.
Enjoy!