Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this work with a react app? #8

Open
bilthon opened this issue Apr 1, 2019 · 3 comments
Open

Should this work with a react app? #8

bilthon opened this issue Apr 1, 2019 · 3 comments

Comments

@bilthon
Copy link

bilthon commented Apr 1, 2019

I have this create-react-app and was wondering if this solution would work on it.

@kurdin
Copy link
Owner

kurdin commented Apr 2, 2019

@bilthon

Yeah, I made some changes, now you can do this in your react or any app with webpack or other bundler:

do
npm i console-remote-client

change your index.js

import React from 'react';
import { render } from 'react-dom';
import AppTodo from './AppTodo';
import registerServiceWorker from './registerServiceWorker';

import 'console-remote-client';

console.re.settings({
  channel: 'my-todo-logs'
});
// view remote logs at https://console.re/my-todo-logs

render(<AppTodo />, document.getElementById('root'));
registerServiceWorker();

visit https://console.re/my-todo-logs
now you can load your app in browser and do: console.re.log('testing')

@devdaddy
Copy link

Anyway you have an example for loading into angular project? I already have it installed, I am having trouble getting it configured for my project.

@ghost
Copy link

ghost commented Jan 27, 2020

Very helpfull. Please add info to "How to connect" on website!

image

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants