Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to make addon work with legacy createReactClass components? #100

Open
glebcha opened this issue Apr 1, 2020 · 0 comments

Comments

@glebcha
Copy link

glebcha commented Apr 1, 2020

We have a huge legacy codebase and this plugin suits well for us except the fact.
Now I have to call createElement method of React like this:

const stories = storiesOf('TiledHeader', module);
const Header = props => React.createElement(TiledHeader,props);
const Item = props => React.createElement(TiledHeaderItem,props);
stories.add('Simple', () =>(
    <Header>
        <Item 
            col={16}  
            positions={{alignY:'center',primary:'flex-start',secondary:'flex-start'}} 
            colors={{
                bg: color('Left Background', '#FFF', colorsGroup.left), 
                primary: color('Left Primary', 'grey', colorsGroup.left),
                secondary: color('Left Secondary', '#000', colorsGroup.left)
            }} 
            primary={'ENTITY COUNT:'}
            secondary={'4'}   
        />
    </Header>
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant