Skip to content

Commit

Permalink
added jsx19.js cleanup 2
Browse files Browse the repository at this point in the history
SQUASHED: AUTO-COMMIT-demos-jsx19.js,
  • Loading branch information
JensLincke committed Apr 22, 2024
1 parent cb7e602 commit d50b33f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demos/jsx19.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,20 @@ export default class FooMorph extends ReactiveMorph {
// (2) with a loop
render_2() {
return <div>
<div>{model.name}</div>
<div>{model.name + "XXX"}</div>
<button click={() => model.name = "bar"}>change</button>
</div>
}

// (3) with a magic loop ... chanage in input is pushed to model
render() {
// Rewriting ERROR: value={model.name + "XXX"}></input>
return <div>
<form id='registerForm'>
<fieldset>
<input
id='nameInput'
value={model.name }></input>
value={model.name}></input>
</fieldset>
</form>
<div>MODEL: {model.name}</div>
Expand Down

0 comments on commit d50b33f

Please sign in to comment.