Attempting to use "pure functions" as components. Partially inspired by vuejs/rfcs#42.
- Ember.js v3.4 or above
- Ember CLI v3.4 or above
- Node.js v8 or above
ember install ember-functional-component
import { createComponent } from 'ember-functional-component';
export default createComponent(props => {
return {
fullName: `${props.first} ${props.last}`,
}
})
The function you provide will be called whenever the incoming arguments change.
See the Contributing guide for details.
This project is licensed under the MIT License.