Giter VIP home page Giter VIP logo

think-in-a-react-way's Introduction

Youtube Facebook Page Facebook Group Instagram LinkedIn


Table of Contents

How to run

Different lessons taught in the Youtube Tutorial Series are organized in separate branches. For example, lesson-1 source code is shared in lesson-1 branch. Just switch to a branch and see corresponding README file instruction.

Contact

Sumit Saha - [email protected]

Project Link: https://github.com/learnwithsumit/think-in-a-react-way

Youtube Playlist Link: https://www.youtube.com/playlist?list=PLHiZ4m8vCp9M6HVQv7a36cp8LKzyHIePr

Youtube Channel: https://youtube.com/LearnwithSumit

think-in-a-react-way's People

Contributors

learnwithsumit 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

think-in-a-react-way's Issues

Parsing error: require() of ES Module

In package.json, update the line
"babel-eslint": "^10.0.2", to "@babel/eslint-parser": "^7.5.4"
This works with the code above but it may be better to use the latest version, which at the time of writing is 7.16.3. Then run npm i to update node_modules.
In .eslintrc, update the parser line "parser": "babel-eslint", to "parser": "@babel/eslint-parser",
In .eslintrc, add "requireConfigFile": false, to the parserOptions section (undern "ecmaVersion": 8) .

context issue

vaia
amar nijer create kora context use korle Content.contextType=ThemeContext ata use korle error dicce
react-dom.development.js:86 Warning: Content defines an invalid contextType. contextType should point to the Context object returned by React.createContext(). However, it is set to an object with keys {Provider, Consumer}.

is this method depricated?

and also ami Section class a shouldComponentUpdate() {
return false;
}

ata use korle button click korle theme value toggle holeo seta dom a update hossena.
but ami jodi hover kori tokon theme change o dom a update hosse and hover value o update hosse
whats the issue here?
Screenshot_302
Screenshot_303
Screenshot_304

es-lint error

Getting this error in my react app over and over again.

Line 0: Parsing error: require() of ES Module /home/ektocyde/tesst/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /home/ektocyde/tesst/node_modules/babel-eslint/lib/require-from-eslint.js not supported. Instead change the require of definition.js in /home/ektocyde/tesst/node_modules/babel-eslint/lib/require-from-eslint.js to a dynamic import() which is available in all CommonJS modules

Formatting not working on ".js", ".jsx" files.

If you are having trouble auto-format on code save in VSCode, you might have to change some settings.

  • Add below the line on the package.json script section
"lint": "yarn add -D prettier && yarn add -D @babel/eslint-parser && npx install-peerdeps --dev eslint-config-airbnb && yarn add -D eslint-config-prettier eslint-plugin-prettier"
  • Add the below line on .eslintrc.
  "parser": "@babel/eslint-parser",
  "parserOptions": {
    "ecmaVersion": 8,
    "requireConfigFile": false,
    "babelOptions": {
      "presets": ["@babel/preset-react"]
    }
  },

Error with Java compile due to VSCode Null Analysis needed in settings.json

Received warning
warning [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.

Yesterday, I used this process 4-5x during video lesson. All were great. Today, half day spent trying to get my app setup without adding code. I kept getting Kotlin compile does not agree with Java. I'm not sure if this babel-eslint has caused my error or memory draining Android Studio emulator. File explorer would not allow rename this app for permissions. After one setup worked a couple of times, then the next launch actually got a blue screen.

After a few restarts and re-builds and without Android Studio, the last one seems works. Although, one thing I did differently. when vscode came up, it asks to enable nullAnalysis. Every time, I replied no or closed the message. This time I enabled yes. This created a settings.json before I could add one. I merged it with yours. The nullAnalysis setting is "java.compile.nullAnalysis.mode": "automatic". Kind of points to a compile problem and nulls do cause blue screens. It is something new that may affect your setup.

My app appears to be working. I did an navigation install, re-arranged folders. Was not able to get pass that before. Thought you may need to know this.

Before I found your article, I had impossible prettier/eslint errors for days.

Thanks for your help.

[eslint] Failed to load config "airbnb" to extend from

Failed to compile.

[eslint] Failed to load config "airbnb" to extend from.
Referenced from: C:\Users\Dell\Desktop\block\my-react.eslintrc
ERROR in [eslint] Failed to load config "airbnb" to extend from.
Referenced from: C:\Users\Dell\Desktop\block\my-react.eslintrc

webpack compiled with 1 error

Parsing Error (Eslint) on Branch : lesson-3

Parsing error: require() of ES Module *\myreact\node_modules\eslint\node_modules\eslint-scope\lib\definition.js from *\myreact\node_modules\babel-eslint\lib\require-from-eslint.js not supported.
Instead change the require of definition.js in *\myreact\node_modules\babel-eslint\lib\require-from-eslint.js to a dynamic import() which is available in all CommonJS modules.eslint

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.