Skip to content

Based in React - The Complete Guide (incl Hooks, React Router, Redux)

Notifications You must be signed in to change notification settings

Andres2D/react-guide-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work in progress

npm i -D [email protected]

Ways to wrap JSX content

  1. use <div></div>
  2. use your own <Wrapper> element returning props.children
  3. use <Fragment></Fragment> elements
  4. use short fragement element <></>

Functional components

const Product = () => {
  return <h2>A product!</h2>
}

class-based components

class Product extends Component {
  render() {
    return <h2>A product!</h2> 
  }
}

Fix next js babel errors

in .eslintrc.json file

{
  "extends": ["next/babel","next/core-web-vitals"]
}

Create .babelrc file and add

{
  "presets": ["next/babel"],
  "plugins": []
}

About

Based in React - The Complete Guide (incl Hooks, React Router, Redux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published