Chapter 2 – Creating Decoupled React and ASP.NET Core Apps

  1. What class does an API controller need to inherit from for invalid models to automatically return HTTP status code 400?

ControllerBase

        1. What option on create-react-app did we use to create a React with a TypeScript project?

        --typescript

        1. What ESLint rule could we use to help to prevent console.log statements being added to our code?

        no-console

        1. What setting in .prettierrc could we set to use single quotes in our code?  

        "singleQuote": true

        1. What file can we use to tell Visual Studio Code to validate TypeScript code using ESLint and to automatically format code using Prettier?

        settings.json in a .vscode folder

        ..................Content has been hidden....................

        You can't read the all page of ebook, please click here login for view all page.
        Reset
        18.224.96.80