Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| import React, { useState, useEffect } from 'react' | |
| //i'm using react-bootstrap for UI elements | |
| import { Table, Button, ButtonGroup } from "react-bootstrap"; | |
| //firebase config | |
| import firebase from './../../Firebase' | |
| export default function App() { | |
| const [list, setList] = useState([]); | |
| const [page, setPage] = useState(1); |
| /** | |
| * Filters an array of objects using custom predicates. | |
| * | |
| * @param {Array} array: the array to filter | |
| * @param {Object} filters: an object with the filter criteria | |
| * @return {Array} | |
| */ | |
| function filterArray(array, filters) { | |
| const filterKeys = Object.keys(filters); | |
| return array.filter(item => { |