open-index/open-npm huggingface dataset:
npm package: @sitewerk-ag/eslint-config-react
Description: Sitewerk shareable ESLint config for react projects.
Latest version: 0.0.16


# @sitewerk/eslint-config-react

Sitewerk shareable ESLint config for react projects.

npm version patch

> Use Prettier for code formatting concerns, and linters for code-quality concerns. Linters are for catching bugs and not for formatting rules.
npm package: @sitewerk-ag/react-shapediver-viewer
Description: Install it via:
Latest version: 1.1.0

# react-shapediver-viewer

## Install

Install it via:

```
npm install --save @sitewerk/react-shapediver-viewer
```

## Guide

### Imperative mode

To escape reacts rendering and acess the raw shapediver instance you can attach a react `ref` to it.

```tsx
import { SdvViewer } from '@sitewerk/react-shapediver-viewer'

function MyComponent () {
  const viewerRef = useRef<SdvViewer>()

  useEffect(() => {
    viewerRef.current.scene.render()
  }, [])

  return (
    <ShapediverViewer ref={viewerRef} parameters={{}} />
  )
}

```

> Note: The viewerRef is not guaranteed to be instantiated when using it in conjunction with useEffect. But one can assume, it's instantiated when interacting with the UI. Otherwise you'll have to attach a local state that tracks the viewer state. You can get the current state via `onStateUpdate`