Skip to content

Add support for CSS classes defined in objects (React) #69

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

Open
ikzjfr0 opened this issue Jul 27, 2017 · 0 comments
Open

Add support for CSS classes defined in objects (React) #69

ikzjfr0 opened this issue Jul 27, 2017 · 0 comments

Comments

@ikzjfr0
Copy link

ikzjfr0 commented Jul 27, 2017

I'm working on react projects. I believe following way is a quite common case. I found css Intellisense does not work when i put all css into an object called style, so I have to put that part into a separate .css file, in which Intellisense works quite well.

render() {
    const style = {
      display: 'flex',
      alignItems: 'center',
      flexDirection: 'column',
      height: '100vh',
    };

    return <div style={style}><NameCard /></div>;
  }
@zignd zignd changed the title Add support for css Intellisense in js/jsx file Add support for CSS classes defined in objects (React) Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants