Guest User

Untitled

a guest
Feb 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. const queries = {
  2. getTodoById: (id) => {
  3. return {
  4. schema: TodoSchema,
  5. value: id
  6. };
  7. }
  8. };
  9.  
  10. const TodoDetailComponent = (props) => {
  11. let db = useDB();
  12.  
  13. let query = queries.getTodoById(props.todoId);
  14. let todos = db.executeQuery(query);
  15.  
  16. return (
  17. <JSON data={todos} />
  18. )
  19. }
Add Comment
Please, Sign In to add comment