Synapse Reusable components library v2
npm install synapse-uisrc/ folder. src/_your_folder/index.js.
import Component1 from './Component1/Component1;
import Component2 from './Component2/Component2;
import Component3 from './Component3/Component3; export {
Component1,
Component2,
Component3,
{... moreComponents}
};
` Testing your new components
1. Go to the package.json of synapse-ui and change the name attribute for synapse-ui-v2.
2. Run yarn install.
3. Run yarn build.
4. Run yarn link.
5. Then go to the project directory where you will use synapse-ui and run yarn link synapse-ui-v2.Testing your components with Storybook
1. Create a stories.jsx file along with your component
2. Run yarn install
3. Run yarn storybook
4. Navigate to your component in Storybook dashboard
5. For additional context, please refer to official Storybook documentation at https://www.learnstorybook.com/Publishing
1. Run yarn install.
3. If you are not logged in. Run npm login. Make sure to count with a npm account.
4. Run the npm publish` command.