Skip to content

Commit

Permalink
chore: release v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed May 9, 2024
1 parent 77259a4 commit 4b6849b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marimo-team/react-slotz",
"version": "0.1.3",
"version": "0.1.4",
"description": "Teleport React components into anywhere into the react-tree.",
"author": "marimo",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Fill.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type React from "react";
import React from "react";
import { useContext, useEffect, useRef } from "react";
import { SlotzContext } from "../manager/context";

Expand All @@ -9,7 +9,7 @@ export interface Props {

export const Fill: React.FC<Props> = (props) => {
const { controller } = useContext(SlotzContext);
const ref = useRef(Symbol("fill"));
const ref = React.useRef(Symbol("fill"));

useEffect(() => {
controller.mount({
Expand Down
6 changes: 3 additions & 3 deletions src/components/Provider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type React from "react";
import React from "react";
import { type PropsWithChildren, useEffect, useState } from "react";
import { Manager } from "../manager/Manager";
import { type ISlotzContext, SlotzContext } from "../manager/context";
Expand All @@ -24,8 +24,8 @@ export const Provider: React.FC<PropsWithChildren<ProviderProps>> = ({
controller,
children,
}) => {
const [state] = useState(() => createState(controller));
const [mounted, setMounted] = useState(false);
const [state] = React.useState(() => createState(controller));
const [mounted, setMounted] = React.useState(false);

useEffect(() => {
state.manager.mount();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"jsx": "preserve",
"jsx": "react-jsx",
"strict": true,
"strictNullChecks": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 4b6849b

Please sign in to comment.