A small collection of simple react snippets that you will actually use.
Support for both JSX and TSX (typescript).
import React from "react";
export const ComponentName = props => {
return <></>;
};
const FunctionName = args => {};
const [PropName, setPropName] = useState(InitialValue);
useEffect(() => {}, []);
For use with material.io. Icon name options are provided as a list.
<i className="material-icons">settings</i>
<></>
Some snippets have slightly altered snippets when typescript is being used.
interface ComponentNameProps {}
export const ComponentName = (props: ComponentNameProps) => {
return <></>;
};
const [PropName, setPropName] = useState<Type>();