• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RisingStack / react-easy-state / 660

pending completion
660

Pull #418

circleci

GitHub
build(deps): bump json5 from 1.0.1 to 1.0.2 in /examples/pokedex
Pull Request #418: build(deps): bump json5 from 1.0.1 to 1.0.2 in /examples/pokedex

87 of 97 branches covered (89.69%)

Branch coverage included in aggregate %.

196 of 199 relevant lines covered (98.49%)

42.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/examples/todo-mvc/src/TodoItem.jsx
1
import React from 'react';
2
import classNames from 'classnames';
3
import { view } from '@risingstack/react-easy-state';
4
import todos from './todosStore';
5

6
// this is re-rendered whenever the relevant parts of the used data stores change
7
export default view(({ id, title, completed = false }) => {
12✔
8
  const itemClass = classNames({ view: true, completed });
34✔
9

10
  return (
34✔
11
    <li className={itemClass}>
12
      <input
13
        className="toggle"
14
        type="checkbox"
15
        checked={completed}
16
        onChange={() => todos.toggle(id)}
3✔
17
      />
18
      <label>{title}</label>
19
      <button onClick={() => todos.remove(id)} className="destroy" />
1✔
20
    </li>
21
  );
22
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc