Closed joerodrig closed 8 years ago
Trying to test out this lib but can't seem to render the ReactAtellier component. My code and the error are below:
import ReactAtellier from 'react-atellier'; import TextareaAutosize from 'react-autosize-textarea'; // Surveys Index Page : Exported Component export default class UtilitiesShowPage extends React.Component { render() { const COMPONENT_LIST = [{ componentName: TextareaAutosize.displayName, component: TextareaAutosize, }]; return ( <ReactAtellier components={COMPONENT_LIST} /> ); } }
COMPONENT_LIST breaks down to:
COMPONENT_LIST = [{ component: component(props, context, updater){...}, componentName: "TextareaAutosize", }]
Hi, @joerodrig3... Do you have tried this?
var ReactAtellier = require('react-atellier')( React );
That fixed it, thank you :)
Trying to test out this lib but can't seem to render the ReactAtellier component. My code and the error are below:
COMPONENT_LIST breaks down to: