Code Monkey home page Code Monkey logo

router-example's Introduction

React Router Example

How to make a Single Page Application with React Router.

Purpose

Set up a router in React.

  • / - root
  • /:page_id - page
  • /categories/:category_id - category

Author

License

This project is open source and available under the MIT License.

router-example's People

Contributors

dependabot[bot] avatar taniarascia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

router-example's Issues

React Hook useEffect has a missing dependency

Tania, let me first say, I REALLY appreciate your blog entries and tutorials. You are totally helping me learn and understand many parts of React. The quality and simplicity of your presentations really sink the lessons home. Many thanks...

With that said, I'm seeing a warning I don't really understand in this exercise. The specific error message from the UserPage.js file: React Hook useEffect has a missing dependency: 'props.match.params.id'. Either include it or remove the dependency array react-hooks/exhaustive-deps

Do note, this exercise is my first involving React Hooks. I've read thru the documentation,but this is my first time playing with actual code.

reference1, reference 2, reference3

From what I can tell, that warning is there to stay, per discussion in facebook/create-react-app#6880

Is that correct? Am I reading this correctly? Do you see the same warning when you run the code in this repo?

Again, many thanks for the work you've put into this stuff.

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.