+ 2
How to use redux in solo learn with react?
17 ответов
+ 6
Hey Sajid, Calvin has everything, lol. Just check it out :))
https://code.sololearn.com/WLgIEbizN9Xl/?ref=app
+ 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>
+ 4
Sajid Perhaps it was not needed for. Or he just forgot to uncomment!
+ 3
Here you go :))
https://code.sololearn.com/W5E46XL5PvM2/?ref=app
Tip: Use search-bar!
+ 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.
+ 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.
+ 2
Here another react redux example, this code uses react hooks.
https://code.sololearn.com/WiliZc294Lb5/?ref=app
+ 1
Arb Rahim Badsa thanks bro.
+ 1
Arb Rahim Badsa Can I use this code in another editor?
+ 1
Arb Rahim Badsa at line 12, why is the script commented?
+ 1
Arb Rahim Badsa can you give me the code for redux only as well? I tried searching his codes but there are 1000codes😵
+ 1
Sajid you can build your GitHub linked file using GitHack
https://raw.githack.com/
+ 1
Calviղ can you please tell me why u used this const {useState, useEffect} = React; instead of import statement?
+ 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".
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
0
Calviղ cant I use the import statement?
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....