Skip to content

Commit

Permalink
docs: implementa um exemplo de teste real
Browse files Browse the repository at this point in the history
  • Loading branch information
deMGoncalves committed Jul 28, 2024
1 parent 445a113 commit 862a2cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
},
"type": "module",
"types": "types.d.ts",
"version": "0.7.1"
"version": "0.7.2"
}
14 changes: 11 additions & 3 deletions src/paint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,31 @@ export default paint;
component.ts:
```typescript
import { html } from '@bake-js/element';

export function component(self: any) {
return `<button>Increment ${self.number}</button>`;
return html`
<button>Increment ${self.number}</button>
`;
}
```
style.ts:
```typescript
import { css } from '@bake-js/element';

export function style(sel: any) {
return "button { color: red; }";
return css`
button { color: red; }
`;
}
```
counter.ts:
```javascript
import paint from '@bake-js/element/paint';
import { paint } from '@bake-js/element';
import component from './component';
import style from './style';

Expand Down

0 comments on commit 862a2cf

Please sign in to comment.