react-code-snippets README
A snippet library which includes simple daily use snippets
Languages supported
Javascript(js)
Typescript(ts)
Javascriptreact(jsx)
Typescriptreact(tsx)
All Commands - 7
cl
- Console Log
cls
- Console Log String
clc
- Console Section
fc
- functional Component
us
- functional Component with useState
fcp
- Arrow functional Component with Props
race
- React functional Component Export
Snippets
cl
- Console Log
console.log();
cls
- Console Log String
console.log("");
clc
- Console Log sections
console.log();
console.count();
console.table();
console.error();
console.info();
race
- React Arrow functional Component Export
import React from "react";
const FileName = () => {
return <></>;
};
export default FileName;
fc
- functional Component
const componentname = () => {
return <></>;
};
us
- functional Component with useState
const componentname = () => {
const [use, setUse] = useState(0);
return <></>;
};
fcp
- functional Component with Props
const ComponentName = ({ props }) => {
return <></>;
};
Contributing
The repo