---
title: "Tung Nguyen (@tungnt) | Hashnode"
description: "programer. Read the latest articles by Tung Nguyen on Hashnode."
url: "https://hashnode.com/@tungnt"
---

@tungnt

# Tung Nguyen

@tungnt · Joined March 2018

programer

### [useCallback when to use it](https://tungnt620.com/usecallback-when-to-use-it?utm_source=hashnode&utm_medium=feed)

function ParentComponent() { const handleClick = () => { // logic } return ( <ChildComponent onClick={handleClick} /> ) } What problem with the above code? A performance problem. Every time ParentComponent re-render, ChildComponen...

1 min read · [tungnt620.com](https://tungnt620.com/usecallback-when-to-use-it?utm_source=hashnode&utm_medium=feed)

[Mar 15, 2021](https://hashnode.com/posts/usecallback-when-to-use-it/604f76ca825b051f2b9dbad6)

### [Move javascript apps to nx](https://tungnt620.com/move-javascript-apps-to-nx?utm_source=hashnode&utm_medium=feed)

Currently, I have 5 projects in javascript and I saw a problem with code sharing. A user-facing project written in Nextjs. An admin project write in react A chrome extension (currently written in raw js, will convert to react app) An admin API projec...

1 min read · [tungnt620.com](https://tungnt620.com/move-javascript-apps-to-nx?utm_source=hashnode&utm_medium=feed)

[Mar 12, 2021](https://hashnode.com/posts/move-javascript-apps-to-nx/604b74cead1cac7d577e0c11)

### [Grid: powerful css3 for creating a web layout](https://tungnt620.com/grid-powerful-css3-for-creating-a-web-layout?utm_source=hashnode&utm_medium=feed)

Recently I have a business requirement: Have a template (a template is an array of fields, each field defines: type, min-length, max-length, ...). From the template, we need to render in another page for the user to submit the form. Template can sho...

1 min read · [tungnt620.com](https://tungnt620.com/grid-powerful-css3-for-creating-a-web-layout?utm_source=hashnode&utm_medium=feed)

[Mar 11, 2021](https://hashnode.com/posts/grid-powerful-css3-for-creating-a-web-layout/604a365894c47a7a201e2b68)

### [A common mistake make performance issue in React](https://tungnt620.com/a-common-mistake-make-performance-issue-in-react?utm_source=hashnode&utm_medium=feed)

We have code block like: function ParentComponent(props) { return ( <ChildComponent style={{ color: 'red' }} /> ) } What performance with the above code? Normally React only rerender a component of props or state change. For this case, ChildC...

1 min read · [tungnt620.com](https://tungnt620.com/a-common-mistake-make-performance-issue-in-react?utm_source=hashnode&utm_medium=feed)

[Mar 10, 2021](https://hashnode.com/posts/a-common-mistake-make-performance-issue-in-react/604901372f49f75f68d3afc0)

### [Migrate data from sqlite3 to Postgres](https://tungnt620.com/migrate-data-from-sqlite3-to-postgres?utm_source=hashnode&utm_medium=feed)

I have a database in sqlite3 and now I want to move data to Postgres, here are the steps I did: Create all table in sqlite3 to Postgres Run sqlite3 dbfile.db .schema Copy the tables, indies, the triggers to Postgres Convert data type in sqlite3 to ...

1 min read · [tungnt620.com](https://tungnt620.com/migrate-data-from-sqlite3-to-postgres?utm_source=hashnode&utm_medium=feed)

[Mar 9, 2021](https://hashnode.com/posts/migrate-data-from-sqlite3-to-postgres/604799de0b907051bba3dc2c)
