A snippet library which includes simple daily use snippets
-
Javascript(js)
-
Typescript(ts)
-
Javascriptreact(jsx)
-
Typescriptreact(tsx)
cl
- Console Logcls
- Console Log Stringel
- Event Listeneroe
- On Eventrace
- React Arrow functional Component Exportac
- Arrow functional Componentacp
- Arrow functional Component with Propsamir
- return jsx while mapping an array
cl
- Console Log
console.log();
cls
- Console Log String
console.log('');
el
- Event Listener
element.addEventListener('event', (e) => {});
oe
- On Event
onEvent={(e) => {}}
race
- React Arrow functional Component Export
import React from 'react';
const FileName = () => {
return(
<>
</>
)
}
export default FileName;
ac
- Arrow functional Component
const componentname = () => {
return (
<>
</>
)
}
acp
- Arrow functional Component with Props
const ComponentName = ({props}) => {
return (
<>
</>
)
}
amir
- return jsx while mapping an array
{array.map(item => {
return(
<element
key={item.key}
>
</element>
)
})}
Contributions are always welcome!