Getting Started
Overview
next-faker is a popular library that generates fake (but reasonable) data that can be used for things such as:
- Unit Testing
- Performance Testing
- Building Demos
- Working without a completed backend
This documentation only covers the React implementation of next-faker.
Installation
Install it as a Dev Dependency using your favorite package manager.
npm install next-faker --save-dev
or
yarn add next-faker --dev
Usage
import { useFaker } from 'next-faker';
const Home = () => {
const { address } = useFaker();
return (
<>
{address.buildingNumber()}
</>
);
}
export default Home;
Community
If you have questions or need help, reach out to the community via GitHub Discussions.