0.2.4 • Published 5 years ago

filter-expression-builder v0.2.4

Weekly downloads
3
License
-
Repository
-
Last release
5 years ago

How to use

Import css and component.

import ExpressionBuilder from 'expression-builder';
import 'expression-builder/dist/main.css';

<ExpressionBuilder state={expression} 
                   attributeProvider={attributeProvider} 
                   onChange={(e, isValid) => console.log(`Current state is: ${e}. isValid: ${isValid}`)})} />

See [ExpressionBuilderComponent] for detailed documentation.

Available Scripts

In the project directory, you can run:

npm start

Runs webpack in development mode, watches changes and bundles code

npm run build

Builds the app for production to the dist folder.

npm run docs

Generate documentation

Troubleshooting

In case you get following error 'hooks can only be called inside the body of a function component' You should add in Webpack following code to root level of config

  resolve: {
    alias: {
      React: path.resolve('./node_modules/react'),
    }
  }
0.2.4

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago