This website speeds up your component creation process with React.js. Modify the contents, and styles of the elements and click on the export button to receive your component code with your custom configurations.
First open website here
You can see a list of HTML elements in the "Elements" section. Try adding/removing elements. you can also edit the inner text of an HTML element by opening that element in the three and clicking on its child. an input appears and you can write your new text.
First, select the element that you want to apply styles to in the Elements section. Then you change the styles for that element from the left side panel.
In this section, you can see a list of styles that your selected element has. When you change something on the styles panel you can see the new value in this panel immediately. Whatever you see in this list will be in your final output.
This page contains two main parts. On the right panel, you can see your code. You can switch between your style and script file by clicking on file names, and you can download the whole component in zip format or you can copy the code of the current visible file in the read-only editor.
On the left side, you can see the available configuration for your code. Below you can see a list of available configurations.
- Props type checking
You can define your prop name, and prop type and determine if it's required or not. The app knows your script language. so it will create props based on that. Uses propTypes for JavaScript and interface for typescript files - Test file
If you select yes, you can see an extra file in your download code named "index.test.[js | ts]" - Script language
*Typescript > using an interface for prop type checking. component return type would be React.ReactNode
Javascript > Using propTypes for prop type checking, and there will be no return type. - Style language
- Sass
- Css
- Props distruction
Add props distruction to component body - Select hooks
If you select any of those items, it will be imported from react liberary
git clone: https://github.com/ariannargesi/quickcomponent.io
cd quickcomponent.io
yarn install
yarn start