This is a built-in template used for creating React class components, e.g. when using the 'Extract Component' refactoring. You can customize this template, for example, to use Component instead of PureComponent or to define prop types differently. You can also use predefined variables that will be then expanded into the corresponding values. |
Predefined variables will take the following values: | ||
component name | ||
component body | ||
prop types definition (using prop-types module) | ||
default prop values to be used by React when prop value is not provided |