Skip to content

RubenMoraVargas/ReactSharingLab

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 show common sharing data problems and solutions

How to run this repository

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

Clone this repository:

git clone https://github.com/RubenMoraVargas/ReactSharingLab.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 

Little explanation of code

This code is a simple Next.js 13 application, and this repository is a lab to show some sharing data between components 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 components, has three directories:

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

The sharing data components have a fake representation of components like BLockchain and to sources Wallet with itself account and Exchange with the respective account, only for didactic purposes, and easy segregate concepts and functionality. Please navigate between the components to see the different solutions and see the code in the components.

Technologies used

  • Next.js 13
  • React.js 18
  • Typescript
  • Tailwind CSS
  • Turbo
  • Eslint
  • Prettier

More information in the blog rubenmora.com/blog

Article to discuss common data sharing in components issues and solutions in react 

About

React Typescript with Next.js lab, custom sample for learning about sharing data components in react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published