TNTung Nguyenintungnt620.com·Mar 18, 2021 · 1 min readMy way to learn EnglishSome tips I doing for learning English. Keep cool when someone said you pronoun wrong a word. Listen, smile, and try to pronoun correct if possible. Try to practice when possible. I usually talk with people at lunch Listen and read content which you...00
TNTung Nguyenintungnt620.com·Mar 15, 2021 · 1 min readuseCallback when to use itfunction ParentComponent() { const handleClick = () => { // logic } return ( <ChildComponent onClick={handleClick} /> ) } What problem with the above code? A performance problem. Every time ParentComponent re-render, ChildComponen...00
TNTung Nguyenintungnt620.com·Mar 12, 2021 · 1 min readMove javascript apps to nxCurrently, 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...00
TNTung Nguyenintungnt620.com·Mar 11, 2021 · 1 min readGrid: powerful css3 for creating a web layoutRecently 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...00
TNTung Nguyenintungnt620.com·Mar 10, 2021 · 1 min readA common mistake make performance issue in ReactWe 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...00