Skip to content

[v1.4.3] React does not have to be in scope

Compare
Choose a tag to compare
@Willem-Jaap Willem-Jaap released this 09 Jun 12:52
· 191 commits to master since this release

Before:

import React from 'react';

const Component = () => {
    return (
        <h1>Hello world!</h1>
    );
};

export default Component;

After:

const Component = () => {
    return (
        <h1>Hello world!</h1>
    );
};

export default Component;