Skip to content

RubenMoraVargas/ReactRenderLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReactRenderLab

React Typescript with Next.js lab to demonstrate rendering issues and solutions

How to run this repository

Visit the rubenmora.com/apps/react-rendering-lab website to see an example in action.

Clone this repository:

git clone https://github.com/RubenMoraVargas/ReactRenderLab.git

and run next command to install all dependencies.

yarn install 

Then run the next command to start the development server.

yarn dev 

Open http://localhost:3000 with your browser to see the result.

If you want to build the project, run yarn build.

yarn build 

If you want to run the project with turbo and tailwind css use

yarn dev-turbo 

Use next command to run tests.

yarn test 

little explanation of code

This code is a simple Next.js 13 application, and this repository is a lab to show some rendering problems and solutions.

This code uses all the code in the src folder, now, Next.js 13 uses the app directory, and all page.tsx has its own component directory with all components used; in this case, the project has only one page. The directory for the components, has three directories:

  • Atomic directory with atomic components.
  • Layout directory with the Navbar component.
  • Rendering directory with the principal components.

The rendering components have names of AWS services only for didactic purposes, and easy grouping. The components with the word "Optimize" are components that have a solution for the problem.

Technologies used

  • Next.js 13
  • React.js 18
  • Typescript
  • Tailwind CSS
  • Turbo
  • Eslint
  • Prettier
  • Jest
  • SWC/Jest to improve the speed of tests
  • React Testing Library

More information in the blog rubenmora.com/blog

Article to discuss common rendering issues and solutions in react 

About

React Typescript with Next.js, lab to show common rendering problems and solutions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published