open-index/open-npm huggingface dataset:
npm package: @relay_team/filter-expression-builder
Description: Import css and component.
Latest version: 1.0.3

## How to use
Import css and component.

```javascript
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.<br>

### `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

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