fbredius/storybook

View on GitHub
examples/cra-ts-kitchen-sink/src/stories/PropsSort.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable react/no-unused-prop-types */
/* eslint-disable react/require-default-props */
import React from 'react';
import PropTypes from 'prop-types';

export const PropsSort = () => <div>PropsSort!</div>;
PropsSort.propTypes = {
  foo: PropTypes.string.isRequired,
  middleWithDefaultValue: PropTypes.string,
  bar: PropTypes.string,
  endWithDefaultValue: PropTypes.string,
};
PropsSort.defaultProps = {
  middleWithDefaultValue: 'Middle!',
  endWithDefaultValue: 'End!',
};