reference-query 0.39.0

Reference Query — find the code you're looking for.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Fixture: a small, domain-neutral JavaScript file — JSX in a `.jsx` file, a
// class with methods, and both spellings of a function declaration.

export class Account {
  deposit(amount) {
    this.balance += amount;
    return this.balance;
  }
}

export function buildAccount() {
  return new Account();
}

export const AccountBadge = ({ label }) => <span>{label}</span>;