1.1.0 • Published 1 year ago

valtio-devtools-client v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

valtio-devtools-client

The client library for use with with valtio-devtools. Works with Expo.

Usage


import { proxy } from  'valtio'
import devtools from 'valtio-devtools-client'

const  state = proxy({
	 foo: true,
	 bar: false
})
const devtoolOptions = {
	host: 'localhost' //default
	
	//Configure host automatically with `babel-plugin-ip-address`
	remote: false //default
}
devtools(state, options)

Options


host: "localhost" //default Host address where valtio-devtools application is running.

remote: false //default Have babel configure host address automatically with babel-plugin-ip-address. Useful when testing Expo apps on device.

  • npm i https://github.com/AndreyKozlov1984/babel-plugin-ip-address
  • add babel-plugin-ip-address to plugins in babel.config.js.

Screenshot

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago