Skip to content

Commit f9c06bc

Browse files
Export count rework
1 parent 017af25 commit f9c06bc

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

jQuery/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jQuery/src/data.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
export const employees = [
2-
{ id: 1, name: 'Alice', department: 'Engineering' },
3-
{ id: 2, name: 'Bob', department: 'Marketing' },
4-
]
1+
export const count = 0;

jQuery/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import _data from './data.js';
1+
import { count as initialCount } from './data.js';
22

33
$(() => {
4-
let count = 0;
4+
let count = initialCount;
55
$('#btn').dxButton({
66
text: `Click count: ${count}`,
77
onClick(e) {

0 commit comments

Comments
 (0)