4.0.0 • Published 3 years ago

@wixc3/react-simulation v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@wixc3/react-simulation

npm version

Library for creation of React component simulations.

Usage

Given:

// hello.tsx

import React from 'react';

export interface HelloProps {
  name: string;
}
export const Hello: React.VFC<HelloProps> = ({ name }) => <div>Hello ${name}</div>;

This library can be used to create simulations for Hello:

// hello.sim.tsx

import { createSimulation } from '@wixc3/react-simulation';
import { Hello } from './hello';

createSimulation({
  name: 'basic simulation',
  componentType: Hello,
  props: { name: 'World' },
});

License

MIT

3.0.1

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago