1.1.2 • Published 6 months ago

@prefresh/web-dev-server v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 months ago

Prefresh-web-dev-server

npm version

Setup

npm i --save-dev @prefresh/web-dev-server
## OR
yarn add --dev @prefresh/web-dev-server

web-dev-server.config.mjs

export default {
  plugins: ['@prefresh/web-dev-server'],
};

Best practices

Recognition

We need to be able to recognise your components, this means that components should start with a capital letter and hook should start with use followed by a capital letter. This allows the Babel plugin to effectively recognise these.

Do note that a component as seen below is not named.

export default () => {
  return <p>Want to refresh</p>;
};

Instead do:

const Refresh = () => {
  return <p>Want to refresh</p>;
};

export default Refresh;

When you are working with HOC's be sure to lift up the displayName so we can recognise it as a component.

1.1.2

6 months ago

1.1.1

11 months ago

1.1.0

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago