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

chore(docs): update code snippets to use krakenjs scope #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ First we'll build a small component. We're not tying ourselves to any particular
```javascript
/* @jsx node */

import { node } from 'jsx-pragmatic';
import { node } from '@krakenjs/jsx-pragmatic';

function Login({ prefilledEmail }) {
return (
Expand All @@ -45,7 +45,7 @@ Let's say we're on the server-side, and we want to render the jsx to html to ser
```javascript
/* @jsx node */

import { node, html } from 'jsx-pragmatic';
import { node, html } from '@krakenjs/jsx-pragmatic';
import { Login } from './components'

function render() {
Expand All @@ -62,7 +62,7 @@ Now let's render the same jsx template on the client-side, directly to a DOM ele
```javascript
/* @jsx node */

import { node, dom } from 'jsx-pragmatic';
import { node, dom } from '@krakenjs/jsx-pragmatic';
import { Login } from './components'

function render() {
Expand All @@ -79,7 +79,7 @@ Or if we're using the same component in React, we can render it as a React compo
```javascript
/* @jsx node */

import { node, react } from 'jsx-pragmatic';
import { node, react } from '@krakenjs/jsx-pragmatic';
import { Login } from './components'

function render() {
Expand All @@ -96,7 +96,7 @@ Or if we're using the same component in Preact, we can render it as a Preact com
```javascript
/* @jsx node */

import { node, preact } from 'jsx-pragmatic';
import { node, preact } from '@krakenjs/jsx-pragmatic';
import { Login } from './components'

function render() {
Expand All @@ -118,7 +118,7 @@ This example renders the jsx directly to DOM elements:
```javascript
/* @jsx node */

import { node, NODE_TYPE } from 'jsx-pragmatic';
import { node, NODE_TYPE } from '@krakenjs/jsx-pragmatic';
import { Login } from './components'

function customDom({ removeScriptTags } = { removeScriptTags: false }) {
Expand Down Expand Up @@ -172,7 +172,7 @@ You can either import `Fragment` from `jsx-pragmatic`:
```javascript
/* @jsx node */

import { node, Fragment } from 'jsx-pragmatic';
import { node, Fragment } from '@krakenjs/jsx-pragmatic';

function Login({ prefilledEmail }) {
return (
Expand All @@ -191,7 +191,7 @@ Or use the `@jsxFrag` comment, and the new `<>` `</>` syntax for Fragments, prov
/* @jsx node */
/* @jsxFrag Fragment */

import { node, Fragment } from 'jsx-pragmatic';
import { node, Fragment } from '@krakenjs/jsx-pragmatic';

function Login({ prefilledEmail }) {
return (
Expand Down