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

Hot module replacement docs are out of date #406

Open
Zacqary opened this issue Feb 15, 2016 · 0 comments
Open

Hot module replacement docs are out of date #406

Zacqary opened this issue Feb 15, 2016 · 0 comments

Comments

@Zacqary
Copy link

Zacqary commented Feb 15, 2016

The instructions for Hot Module Replacement cause errors in the latest version of Deku. This section doesn't work:

import {dom, element} from 'deku';
import Application from './components/Application.jsx';

const render = dom.createRenderer(document.getElementById('mount'));

// Rendering function
function update (Component) {
  render(<Component />)
}

// First render
update(Application);

What works for me is:

import {createApp, element} from 'deku';
const render = createApp(document.getElementById('mount'));
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

1 participant