publish: move macro crate out of core

This commit is contained in:
Jonathan Kelley committed 2021-09-24 21:46:23 -04:00
1 parent 10d335ae31
commit 7bdad1e2e6
25 files changed
+44 -31

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
use dioxus_core_macro::*;
fn main() {
console_error_panic_hook::set_once();
+1
View File
@@ -1,6 +1,7 @@
//! Basic example that renders a simple VNode to the browser.
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
+1 -1
View File
@@ -3,9 +3,9 @@
use dioxus::events::on::MouseEvent;
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
// use wasm_timer;
use std::future::Future;
+3 -2
View File
@@ -11,6 +11,7 @@
use dioxus::prelude::*;
use dioxus_core as dioxus;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
@@ -22,7 +23,7 @@ fn main() {
// dioxus::web::launch(App, |c| c);
}
static App: FC<()> = |cx, props|{
static App: FC<()> = |cx, props| {
dbg!("rednering parent");
cx.render(rsx! {
div {
@@ -39,7 +40,7 @@ static App: FC<()> = |cx, props|{
})
};
static But: FC<()> = |cx, props|{
static But: FC<()> = |cx, props| {
let mut count = use_state(cx, || 0);
// let d = Dropper { name: "asd" };
+1 -1
View File
@@ -4,9 +4,9 @@ Tiny CRM: A port of the Yew CRM example to Dioxus.
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
fn main() {
// Setup logging
wasm_logger::init(wasm_logger::Config::new(log::Level::Debug));
+7 -8
View File
@@ -3,10 +3,9 @@
use dioxus::events::on::MouseEvent;
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
// use wasm_timer;
use std::future::Future;
use std::{pin::Pin, time::Duration};
@@ -25,7 +24,7 @@ fn main() {
dioxus_web::launch(App, |c| c)
}
pub static App: FC<()> = |cx, props|{
pub static App: FC<()> = |cx, props| {
cx.render(rsx!(
div { class: "overflow-hidden"
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel:"stylesheet" }
@@ -40,7 +39,7 @@ pub static App: FC<()> = |cx, props|{
))
};
pub static Header: FC<()> = |cx, props|{
pub static Header: FC<()> = |cx, props| {
cx.render(rsx! {
div {
header { class: "text-gray-400 bg-gray-900 body-font"
@@ -66,7 +65,7 @@ pub static Header: FC<()> = |cx, props|{
})
};
pub static Hero: FC<()> = |cx, props|{
pub static Hero: FC<()> = |cx, props| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -104,7 +103,7 @@ pub static Hero: FC<()> = |cx, props|{
}
})
};
pub static Entry: FC<()> = |cx, props|{
pub static Entry: FC<()> = |cx, props| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -117,7 +116,7 @@ pub static Entry: FC<()> = |cx, props|{
})
};
pub static StacksIcon: FC<()> = |cx, props|{
pub static StacksIcon: FC<()> = |cx, props| {
cx.render(rsx!(
svg {
// xmlns: "http://www.w3.org/2000/svg"
@@ -132,7 +131,7 @@ pub static StacksIcon: FC<()> = |cx, props|{
}
))
};
pub static RightArrowIcon: FC<()> = |cx, props|{
pub static RightArrowIcon: FC<()> = |cx, props| {
cx.render(rsx!(
svg {
fill: "none"