
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@zopauk/react-components
Advanced tools
Shared react styled components for all the Zopa projects.
Shared react styled components for all the Zopa projects.
This repo contains 2 things at the same time:
The Typescript library for the react components
Documentation for the components managed with React-styleguidist
There are a number of breaking changes which will need to be addressed when upgrading from Zopa React Components v3 to v4.
The migration guide will walk you through the major changes such as colours and typography.
git clone https://github.com/zopaUK/react-components.git
pnpm i
Local linking with Next.js applications can be particularly challenging due to the way Next.js handles module resolution and its own optimization processes. When attempting to link local packages, such as react-components
, with a Next.js application, developers might encounter issues related to module resolution, duplicate React instances, or unexpected behavior in hot module reloading (HMR).
To mitigate these issues, you can use pnpm dev:zrc
.
Follow these steps:
react-components
directory, run the following command to start the watcher:pnpm dev:zrc
react-components
library (if it exists):pnpm dev:zrc
Now, any changes made in the react-components
codebase will be reflected in the linked application after a delay (~500ms).
NOTE: It is named "zrc" (specifically) to allow the developer to run the same command on both projects.
Execute the development environment:
pnpm dev
The docs will run at localhost:6060.
We start a watcher using esbuild and tsc by running:
pnpm dev:code
Your locally running app will have its own way of linking to local dependencies but making changes in react-components codebase should now show in the application.
The aim of this project is to share with the frontend community how we code in Zopa.
We think it might be useful for someone who wants to start a new react components library and want to re-use some of our code.
You can access typings for specific components under @zopauk/react-components/types
:
import { Button } from '@zopauk/react-components';
import { IButtonProps } from '@zopauk/react-components/types/components/atoms/Button';
To inspect the folder structure within @zopauk/react-components/types
you can run yarn compile:types
and navigate the generated types/
folder in the project root.
In case you want to contribute to this library, please have a look at our contributing guidelines ๐๐ผ
This repository is MIT-licensed.
No permission is granted to use the trade names, trade marks, service marks, or product names of Zopa, except as required for reasonable and customary use in describing the origin of this library and reproducing the content of the notice in the license.
Zopa uses Open Sans in its sites and applications. If you want to make use of this font outside of Zopa, you will need to license it directly from Google Fonts.
FAQs
Shared react styled components for all the Zopa projects.
The npm package @zopauk/react-components receives a total of 885 weekly downloads. As such, @zopauk/react-components popularity was classified as not popular.
We found that @zopauk/react-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Koreaโs Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.