storybook

    1热度

    2回答

    我不能似乎得到了@storybook插件旋钮工作?它似乎并没有装饰实际的故事。几乎其次this 我下面的代码..进出口使用getstorybook与创造 - 反应 - 应用 使用下面的包: @storybook/addon-actions": "^3.1.2, @storybook/addon-info": "^3.1.4, @storybook/addon-knobs": "^3.1.2,

    1热度

    1回答

    我想将storyshots合并到我的项目中。 我有这样的笑话配置: "moduleFileExtensions": [ "json", "js", "jsx" ], 这里是我的测试文件内容: import React from 'react'; import renderer from 'react-test-renderer'; import initSt

    0热度

    1回答

    我正在写一个故事阵营表,我得到了以下错误: 阵营工具箱文件没有更新。我认为。因为我不能在the source code 找到model和source性能有我的组件源 import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import {Table

    2热度

    1回答

    我目前正面临故事书的问题。一切都在我的应用程序,webpack工作得很好。故事书似乎有我的配置问题。 这里是我的webpack.config.js: module.exports = { entry: './index.js', output: { path: path.join(__dirname, 'dist'), filename: 'bundle.j

    0热度

    1回答

    我对在浏览器中运行的代码起作用,但我们所有的故事书示例都被破坏了,因为我们只测试一个单独的组件。 有人可以解释(与例子)如何获取故事书,显示个人组件与react-i18next一起工作吗?

    3热度

    1回答

    我正在使用storybook(this)与我的组件隔离玩耍。我想嘲笑所有的流量周期(在完整的应用程序中,它是在redux的帮助下完成的),并使用故事中的一个简单对象更新属性,但我错过了一些东西。 storiesOf('Color picker', module).add('base',() => { let colorPickerState = { changeColor:

    2热度

    1回答

    我使用的是故事书,我想补充终极版作为装饰。 WHE运行的故事书,我被警告在控制台: <Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which

    0热度

    1回答

    我使用故事书制作了一个项目,其中添加了一些组件。 当我尝试在另一个项目中使用这些组件我得到一个错误 Uncaught Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a comp

    0热度

    1回答

    我有一个简单的固定的数据表部件,基于this example 我使其上的故事书 import React, { Component } from 'react'; var FixedDataTable = require('fixed-data-table'); const {Table, Column, Cell} = FixedDataTable; export default cla