Closed markwylde closed 2 months ago
If we were to go about creating a language out of Presh, it could look something like this:
joinName(firstName lastName) { firstName + ' ' + lastName } fastn('div' fastn('span' 'hello') fastn('span' fastn.binding('firstName' 'lastName' joinName)) ) |> (updateState){ updateState()({ firstName: 'Mark', lastName: 'Smith', country: 'France' }) updateState('firstName')('Alex') serverNameChange <| updateState('firstName') } |> (render){ window.onLoad((){ document.body.appendChild(render()) }) }
If we were to go about creating a language out of Presh, it could look something like this: