Coder Social home page Coder Social logo

redux-dispatch-with-event-listeners's Issues

dot-learn file missing

This exercise does not have a .learn file, which causes learn-open (1.2.28) to break when LearnOpen>Lesssons>IosLesson fails to find a :languages key there (/learn-open-1.2.28/lib/learn_open/lessons/ios_lesson.rb:6)

Small typo

..."Here it is: you click on a button, and you see a number on the page go to zero to one."
Should be:
Here it is: you click on a button, and you see a number on the page go from zero to one.

Two code snippets telling students different things.

function render(){
let container = document.getElementById('container');
container.textContent = state.count;
}

The above code snippet is from directly below 3. Using the render function to display our state which conflicts with what is being shown later on in the readme in the last snippet of section 4 which includes

function render() {
document.setInnerHtml = state.count;
}

jQuery

This lesson has a reference to it "having been a long time since you set up an event without jQuery" but our curriculum doesn't include jQuery. Old lesson?

It can access?

Suggest putting the word "can" before "access" in this sentence:
"It access the state because it is declared earlier in the file in global scope."

Thank you.

Missed curly brackets in lesson walkthrough results in type error

As per lessons instructions:
"Now, if instead we want to show the number zero, our default state, well we can just refresh our page, and then dispatch an action that returns the default state like so: dispatch(type: '@@init'). "
Results in the following error:
SyntaxError: missing ) after argument list

Correct console command should be:
dispatch({type: '@@init'})

Change in render() method - why?

Why is the render method changed to:
function render(){
document.setInnerHtml = state.count
}

Shouldn't it stay as
function render(){
let container = document.getElementById('container');
container.textContent = state.count;
}

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.