Nefarious Pomegranate Magnate

    react-codemod-empty-node-to-null

    1.0.1 • Public • Published

    react-codemod-empty-node-to-null

    Circle CI

    A codemod to turn your returns of an empty node to null. Staring with React 15.0 you can return null from a stateless function component. This codemod will alter all your empty node returns to return null instead.

    use

    • npm install jscodeshift -g
    • npm install react-style-px-suffix-codemod
    • run this script with jscodeshift -t node_modules/react-codemod-empty-node-to-null <DIRECTORY_OR_FILE_TO_RUN_ON>

    Install

    npm i react-codemod-empty-node-to-null

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • conorhastings