Example React
component "library" using rollup
that is published to npm
.
My requirements for this package were
- Use
babel
- Use
semantic-release
- Use
sass
- Support
umd
andes
modules - Use
storybook
- Make the exported components really simple
├── xxx
│ ├── xxx
│ │ ├── **/*.xxx
│ ├── xxx
│ ├── images
│ ├── xxx
│ ├── js
│ │ ├── **/*.js
│ └── xxx
├── dist (or build)
├──
├──
├──
├──
├── README.md
├── package.json
├──
└── .gitignore
- Table
- BasicTable
- Row
- Rows
- Section
- TableLeft
Main Table component, aka Raw table
this is a simple wrapper around table, with just a set of basic attributes
<table
border="0"
cellpadding="0"
cellspacing="0"
role="presentation"
width="100%">
<tbody>
...
</tbody>
</table>
Row should help a little bit to remove a number of lines.
Can be with or without <tbody>
<table
className={className}
dir={reverse && 'rtl'}
>
<tbody className={bodyClassName}>
<tr>
{children}
</tr>
</tbody>
</table>
Rows is my interpretation of a previous component. I just want to have a support for a few TR`s if it will be necessary
like:
<tbody>
<tr>
<td align="center" valign="top" class="big-title" style="-webkit-text-size-adjust: 100%; ...">...</td>
</tr>
<tr>
<td align="center" valign="top" style="padding-bottom: 30px; ...">
...
</td>
</tr>
<tr>
<td align="center" valign="top" class="board-pic" style="padding-bottom: 40px; ...">...</td>
</tr>
- https://hackernoon.com/5-reasons-why-newsletters-should-be-part-of-your-business-strategy
- https://hackernoon.com/organizing-an-advanced-structure-for-html-email-template
- https://hackernoon.com/how-i-started-to-build-react-components-for-email-templates
- https://hackernoon.com/introducing-a-simple-npm-module-with-email-templates
- https://hackernoon.com/glossary-for-non-technies
- https://hackernoon.com/email-marketing-and-how-to-curate-an-effective-business-newsletter
- https://hackernoon.com/exploring-substack-for-building-your-newsletter
- https://hackernoon.com/building-a-design-system-for-email-templates-react
- https://hackernoon.com/together4victory-list-of-email-marketing-tools
- https://hackernoon.com/cool-newsletters-for-developers-part-1
- https://hackernoon.com/cool-resources-for-sending-emails