+ 2

How to use redux in solo learn with react?

5th May 2020, 4:06 PM
Sajid
Sajid - avatar
17 ответов
+ 6
Hey Sajid, Calvin has everything, lol. Just check it out :)) https://code.sololearn.com/WLgIEbizN9Xl/?ref=app
5th May 2020, 4:20 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 4
Sajid Yes, it can be used in any editor. But make sure to set the type of the script to 'babel'! <script type="text/babel"> // everything goes here </script>
5th May 2020, 9:51 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 4
Sajid Perhaps it was not needed for. Or he just forgot to uncomment!
5th May 2020, 9:58 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
Here you go :)) https://code.sololearn.com/W5E46XL5PvM2/?ref=app Tip: Use search-bar!
5th May 2020, 10:24 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 2
Sajid due to the code runs script https://unpkg.com/react@16.7.0-alpha.0/umd/react.development.js already obtained React class to process react hooks codes.
11th May 2020, 1:36 AM
Calviղ
Calviղ - avatar
+ 2
Sajid if you want to use import export, you got to have file system, since code playground can't give you file system, you can't run the code there, use your pc to test the codes.
12th May 2020, 1:36 AM
Calviղ
Calviղ - avatar
+ 2
Here another react redux example, this code uses react hooks. https://code.sololearn.com/WiliZc294Lb5/?ref=app
17th May 2020, 1:03 AM
Calviղ
Calviղ - avatar
+ 1
Arb Rahim Badsa thanks bro.
5th May 2020, 4:34 PM
Sajid
Sajid - avatar
+ 1
Arb Rahim Badsa Can I use this code in another editor?
5th May 2020, 8:58 PM
Sajid
Sajid - avatar
+ 1
Arb Rahim Badsa at line 12, why is the script commented?
5th May 2020, 9:53 PM
Sajid
Sajid - avatar
+ 1
Arb Rahim Badsa can you give me the code for redux only as well? I tried searching his codes but there are 1000codes😵
5th May 2020, 10:00 PM
Sajid
Sajid - avatar
+ 1
Sajid you can build your GitHub linked file using GitHack https://raw.githack.com/
7th May 2020, 11:39 AM
Calviղ
Calviղ - avatar
+ 1
Calviղ can you please tell me why u used this const {useState, useEffect} = React; instead of import statement?
11th May 2020, 12:45 AM
Sajid
Sajid - avatar
+ 1
Sajid If you want to use import module, it needs to refer to a local export module. The import statement cannot be used in embedded scripts unless such script has a type="module".
12th May 2020, 1:09 AM
Calviղ
Calviղ - avatar
0
Arb Rahim Badsa here in solo learn linking files is not required. By importing redux like this, do I've to connect my files to it and if so how? Kindly answer
5th May 2020, 10:30 PM
Sajid
Sajid - avatar
0
Calviղ cant I use the import statement?
12th May 2020, 12:50 AM
Sajid
Sajid - avatar
0
Calviղ I can't understand anything. Freaking mess. I just wanted to complete the redux course from mosh and it's a pain like this. I feel like I've to move to old bulky laptop. I completed the react course using spck code editor. They gave a file named config.js which had 30 lines of code I couldn't understand. And I was being able to use import statements. It was doing something with the system.js module. If you can please check it out. 6mbs only. I know I shouldn't ask you for this but please....
12th May 2020, 1:18 AM
Sajid
Sajid - avatar