UI/UX Engineer
Denver, CO
Software Engineer
Denver, CO
1
2
3
4
what the user sees
your code
application state
UI
=
ƒ( )
state
<App>
<h3>What's the answer?</h3>
<input value={state.answer} />
</App>
state = {
answer: "42"
}
UI
ƒ( )
state
Similar to a template file in other frameworks
return <h1>Hello, {this.props.name}</h1>;
return React.createElement(
'h1',
null,
'Hello, ',
this.props.name
);
return (
<div>
<h1>To Do:</h1>
<ol>
{todosArray.map(todo => (
<li>{todo}</li>
))}
</ol>
</div>
);
To the docs!
More React sessions...