r0
Snippets for JS, TS and React ♥.
Supported languages (file extensions)
- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript (.ts)
- TypeScript React (.tsx)
All Methods
imp
import $1 from '$1';
imd
import { $2 } from '$1';
imr
import React from 'react';
ims
import styled from 'styled-components';
imsn
import styled from 'styled-components/native';
clg
console.log($1);
nf
const $1 = ($2) => {
$3
};
rf
import React from 'react';
const $1 = () => {
return (
<div>
$2
</div>
);
};
export default $1;
rnf
import React from 'react';
import { View, Text } from 'react-native';
const $1 = () => {
return (
<View>
<Text> $2 </Text>
</View>
);
};
export default $1;
sc
const $1 = styled.$2`
$3
`;
sp
${(prop) => prop.$1};
st
${({theme}) => theme.$1};
| |