Michał Koźmiński
Interested in functional programming and AI. In free time enjoying cycling and mountain climbing.
Software Engineer @ Klara
michalkozminski
With shared components
styled-components
𝙛 := make blue
Separate repository
Shared Components
Project A
Project B
Project C
trigger update/test
stories.add('with a button', () => (
<button disabled={boolean('Disabled', false)} >
{text('Label', 'Hello Button')}
</button>
))
const propTypes = {
active: PropTypes.bool,
disabled: PropTypes.bool,
block: PropTypes.bool,
onClick: PropTypes.func,
componentClass: elementType,
href: PropTypes.string,
/**
* Defines HTML button type attribute
* @defaultValue 'button'
*/
type: PropTypes.oneOf(['button', 'reset', 'submit']),
};
Make sure all project use the same version of components
Host/export style guides
Don't create different versions of one component
wrap them
Create repository/directory with shared components