@speedsters/react
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@speedsters/react", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A simple way of testing your react application performance", | ||
"main": "./cjs/index.js", | ||
"types": "./types/index.d.ts", | ||
"types": "./types/development/index.d.ts", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -12,3 +12,3 @@ # Speedsters | ||
import ReactDOM from 'react-dom'; | ||
import jsnpr from '@speedsters/react'; | ||
import sreact from '@speedsters/react'; | ||
@@ -18,3 +18,3 @@ const connectionOptions = { | ||
}; | ||
jsnpr.connect(connectionOptions); | ||
sreact.connect(connectionOptions); | ||
@@ -27,3 +27,3 @@ ``` | ||
import { AppRegistry, Platform} from 'react-native'; | ||
import jsnpr from '@speedsters/react'; | ||
import sreact from '@speedsters/react'; | ||
@@ -49,3 +49,3 @@ const connectionOptions = { | ||
jsnpr.connect(connectionOptions); | ||
sreact.connect(connectionOptions); | ||
``` | ||
@@ -59,3 +59,3 @@ | ||
import React from 'react'; | ||
import jsnpr from '@speedsters/react'; | ||
import sreact from '@speedsters/react'; | ||
@@ -82,7 +82,7 @@ export default class App extends React.Component<Props, State> { | ||
jsnpr.component(this, options); | ||
sreact.component(this, options); | ||
/* | ||
* Because this method is been bind on the constructor | ||
* it will be measure by the Jsnpr.component. | ||
* it will be measure by the sreact.component. | ||
* | ||
@@ -89,0 +89,0 @@ * NOTE: Arrow function will not be measured. |
@@ -1,2 +0,2 @@ | ||
import { CreateSocketOptions, IReact as JsnpReactType, ReactComponentOptions } from '@speedsters/type'; | ||
import { ConnectionOptions, IReact as JsnpReactType, ReactComponentOptions } from '@speedsters/type'; | ||
export declare const RENDER_COUNT = "renderCount"; | ||
@@ -8,3 +8,3 @@ export declare class IReact implements JsnpReactType { | ||
readonly data: any; | ||
connect(options?: CreateSocketOptions): this; | ||
connect(options?: ConnectionOptions): this; | ||
component(_this: any, options?: ReactComponentOptions): any; | ||
@@ -11,0 +11,0 @@ } |
10286