Skip to content

Cfon/react-render-bug

Repository files navigation

React Render Bug?

Run scripts from terminal

cd react-render-bug
npm install
npm start
npm run build
npm run serve build

Issues:

In case use tag Table after edit cell react will rerender full table

export const DataTable = props => {
    ...
    const Table = () => {
        ...
    };

    return (
        <div>
            <Table />
        </div>
    );
};

In case as function call will rerender only edited cell

export const DataTable = props => {
    ...
    const Table = () => {
        ...
    };

    return (
        <div>
            {Table()}
        </div>
    );
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published