• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back

If I define some props in the React.createClass var text = this.props.txt


{text}

Where do I assign it?



I can assign it when rendering the tag.

What do you use to define you own Html-tag?

React.createClass({ });

What do you use to create you own Html-tag?

React.render({ });

Which states to you need for a simple input field with preview?

getInitialState:function(){}


update:function(){}


render:function(){}

What is a owner-ownee relationship?

When one component refers to another one.

What is a component in React?

It´s a class for the creation of custom DOM-elements.

What is a module here?

It´s a piece of reusable code that has to be exported and can then be used, when you require the according file.


module.exports = { Histogram: Histogram};

What´s a state in React?

a component can maintain internal state data the can be accessed via this.state

What is the render method doing?

When a component's state data changes, the rendered markup will be updated by re-invoking render(). In this method you can pass variables, methods… like attributes. The render method should not modify the state.

componentDidMount() is for what?

All the things you wanna get done after the render, for example compling an angular directive or repositioning something.

this.props

input data ca be accessed via this.props

What can you do for example with this.state?

this.state can be used to track the current list of items as well as the text that the user has entered .