React.js

React.js

How I set up my default CSS styles in index.css for React projects.

I use these simple styles in my index.css as a default starting point for most React projects.

Read
React.js

How I handle updates for non-primitive types in states with React Hooks and Typescript.

I don’t mutate non-primitive values in states directly. Never ever. This can provide many problems in React backstages.

Read
React.js

How I name event handlers in React with TypeScript.

I prefer to use a few simple conventions to name React event handlers.

Read
React.js

How I update objects in the state array with React Hooks and TypeScript.

I use the useState hook to update objects in the state array in my React projects.

Read