Giter Site home page Giter Site logo

headcount-2.0's People

Watchers

 avatar

headcount-2.0's Issues

Extension 1

Implement more pages utilizing more data such as enrollment, test scores, dropout rates, graduation rates, remediation, household incomes, and special education.

Jest Test Error

Aftering installing react-media to use media queries, the first test in App.test.js breaks.

it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(, div);
});

The error points to line 67:

{matches =>
matches ? (

Welcome to Headcount


) : (

Welcome to Headcount


)
}

The error provides a few directions.

FAIL src/App/App.test.js
● Console

console.error node_modules/react-dom/cjs/react-dom.development.js:9747
  The above error occurred in the <Media> component:
      in Media (at App.js:67)
      in div (at App.js:66)
      in App (at App.test.js:19)

  Consider adding an error boundary to your tree to customize error handling behavior.
  Visit https://fb.me/react-error-boundaries to learn more about error boundaries.

● App › renders without crashing

Invariant Violation: <Media targetWindow> does not support `matchMedia`.

Having gone to the link provided and read up on error boundries, I am still uncertain on how to fix this error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.